diff options
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/find_python.bat | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat index d5c787f..40937a6 100644 --- a/PCbuild/find_python.bat +++ b/PCbuild/find_python.bat @@ -24,6 +24,9 @@ :begin_search @set PYTHON= +@rem If there is an active virtual env, use that one +@if NOT "%VIRTUAL_ENV%"=="" (set PYTHON="%VIRTUAL_ENV%\Scripts\python.exe") & (set _Py_Python_Source=found in virtual env) & goto :found + @set _Py_EXTERNALS_DIR=%EXTERNALS_DIR% @if "%_Py_EXTERNALS_DIR%"=="" (set _Py_EXTERNALS_DIR=%~dp0\..\externals) |