Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fbc9f9

Browse files
authored
Merge pull request #1042 from stonebig/master
re-apply patch #1024
2 parents db9973e + 60c3a69 commit 8fbc9f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

make.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def _create_batch_scripts_initial(self):
10201020
rem get a normalize path
10211021
set WINPYDIRBASETMP=%~dp0..
10221022
pushd %WINPYDIRBASETMP%
1023-
set WINPYDIRBASE=%CD%
1023+
set WINPYDIRBASE=%__CD__%
10241024
set WINPYDIRBASETMP=
10251025
popd
10261026
@@ -1375,8 +1375,8 @@ def _create_batch_scripts_initial(self):
13751375
)
13761376
)
13771377
) else (
1378-
rem if it it launched from another directory , we keep it that one echo %CD%
1379-
if not "%CD%\"=="%~dp0" set WINPYWORKDIR1="%CD%"
1378+
rem if it it launched from another directory , we keep it that one echo %__CD__%
1379+
if not "%__CD__%\"=="%~dp0" set WINPYWORKDIR1="%__CD__%"
13801380
)
13811381
13821382
rem remove some potential last \

0 commit comments

Comments
 (0)