forked from buildbot/buildbot
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install buildslave.bat wrapper for win32
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@echo off | ||
REM This file is used to run buildslave when installed into a python installation or deployed in virtualenv | ||
|
||
setlocal | ||
set BB_BUILDSLAVE="%~dp0buildslave" | ||
|
||
IF EXIST "%~dp0..\python.exe" ( | ||
REM Normal system install of python (buildslave.bat is in scripts dir, just below python.exe) | ||
set BB_PYTHON="%~dp0..\python" | ||
) ELSE IF EXIST "%~dp0python.exe" ( | ||
REM virtualenv install (buildslave.bat is in same dir as python.exe) | ||
set BB_PYTHON="%~dp0python" | ||
) ELSE ( | ||
REM Not found nearby. Use system version and hope for the best | ||
echo Warning! Unable to find python.exe near buildslave.bat. Using python on PATH, which might be a mismatch. | ||
echo. | ||
set BB_PYTHON=python | ||
) | ||
|
||
%BB_PYTHON% %BB_BUILDSLAVE% %* | ||
|
||
exit /b %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters