summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2018-01-02 13:48:28 (GMT)
committerRay Donnelly <mingw.android@gmail.com>2018-01-18 15:26:54 (GMT)
commit82c09769f9547c99cb0bbb3b746ed10dfe05cf6f (patch)
treee2b1507901bd41feafc32874a2b34ce96f94d588 /src/script
parent888f2d970a0d124fb5a1a809d4afdd43849f4d62 (diff)
downloadSCons-82c09769f9547c99cb0bbb3b746ed10dfe05cf6f.zip
SCons-82c09769f9547c99cb0bbb3b746ed10dfe05cf6f.tar.gz
SCons-82c09769f9547c99cb0bbb3b746ed10dfe05cf6f.tar.bz2
Do not add unnormalised entries to PATH in scons.bat
Diffstat (limited to 'src/script')
-rw-r--r--src/script/scons.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/scons.bat b/src/script/scons.bat
index fddeca4..a9e777e 100644
--- a/src/script/scons.bat
+++ b/src/script/scons.bat
@@ -16,7 +16,9 @@ goto endscons
:WinNT
setlocal
@REM ensure the script will be executed with the Python it was installed for
-set path=%~dp0;%~dp0..;%path%
+pushd %~dp0..
+set path=%~dp0;%CD%;%path%
+popd
@REM try the script named as the .bat file in current dir, then in Scripts subdir
set scriptname=%~dp0%~n0.py
if not exist "%scriptname%" set scriptname=%~dp0Scripts\%~n0.py