8000 Merge pull request #1044 from stonebig/master · winpython/winpython@652dbb7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 652dbb7

Browse files
authored
Merge pull request #1044 from stonebig/master
DOS housekeeping
2 parents 0c7669a + 777267b commit 652dbb7

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
@@ -1021,6 +1021,7 @@ def _create_batch_scripts_initial(self):
10211021
set WINPYDIRBASETMP=%~dp0..
10221022
pushd %WINPYDIRBASETMP%
10231023
set WINPYDIRBASE=%__CD__%
1024+
if "%WINPYDIRBASE:~-1%"=="\" set WINPYDIRBASE=%WINPYDIRBASE:~0,-1%
10241025
set WINPYDIRBASETMP=
10251026
popd
10261027
@@ -1358,7 +1359,7 @@ def _create_batch_scripts_initial(self):
13581359
'env_for_icons.bat',
13591360
r"""@echo off
13601361
call "%~dp0env.bat"
1361-
set WINPYWORKDIR=%~dp0..\Notebooks
1362+
set WINPYWORKDIR=%WINPYDIRBASE%\Notebooks
13621363
13631364
rem default is as before: Winpython ..\Notebooks
13641365
set WINPYWORKDIR1=%WINPYWORKDIR%

0 commit comments

Comments
 (0)
0