summaryrefslogtreecommitdiff
path: root/win/testplugin/batch_template.txt
diff options
context:
space:
mode:
Diffstat (limited to 'win/testplugin/batch_template.txt')
-rw-r--r--win/testplugin/batch_template.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/win/testplugin/batch_template.txt b/win/testplugin/batch_template.txt
new file mode 100644
index 0000000..9fc1e43
--- /dev/null
+++ b/win/testplugin/batch_template.txt
@@ -0,0 +1,18 @@
+@echo off
+
+setlocal
+
+IF EXIST "%~dp0..\python.exe" (
+ set PYTHON_EXE="%~dp0..\python"
+) ELSE IF EXIST "%~dp0python.exe" (
+ REM virtualenv install
+ set PYTHON_EXE="%~dp0python"
+) ELSE (
+ echo Warning! Unable to find python.exe. Relying on PATH which may fail
+ echo.
+ set PYTHON_EXE=python
+)
+
+%PYTHON_EXE% "%~dp0#$#PYSCRIPT#$#" %*
+
+exit /b %ERRORLEVEL%