8000 DOS housekeeping · winpython/winpython@777267b · GitHub
[go: up one dir, main page]

Skip to content

Commit 777267b

Browse files
committed
DOS housekeeping
... trying not to get mad at DOS
1 parent 33dc50c commit 777267b

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