Skip to content

Commit 098c2b0

Browse files
committed
Merge pull request #311 from dougthor42/fix-repeated-calls-to-env-bat-filling-up-path-310
Updated env.bat script to not modify %path% if %WINPYDIR% already exists
2 parents bd23ff5 + 505effd commit 098c2b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,8 @@ def _create_batch_scripts_initial(self):
552552
set HOME=%~dp0..\settings
553553
set WINPYARCH=WIN32
554554
if "%WINPYDIR:~-5%"=="amd64" set WINPYARCH=WIN-AMD64
555-
set PATH=""" + path + r"""
555+
echo ;%PATH%; | find /C /I ";%WINPYDIR%\;" >nul
556+
if %ERRORLEVEL% NEQ 0 set PATH=""" + path + r"""
556557
557558
rem force default pyqt5 kit for Spyder if PyQt5 module is there
558559
if exist "%WINPYDIR%\Lib\site-packages\PyQt5" set QT_API=pyqt5

0 commit comments

Comments
 (0)