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

Skip to content

Commit d22628b

Browse files
author
stonebig
committed
compatiblity tweak for Neard users
1 parent 60f21ac commit d22628b

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

make.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,13 @@ def _create_batch_scripts_initial(self):
553553

554554
self.create_batch_script('env.bat', r"""@echo off
555555
set WINPYDIRBASE=%~dp0..
556+
556557
rem get a normalize path
557-
CALL :NORMALIZEPATH "%WINPYDIRBASE%"
558-
set WINPYDIRBASE=%RETVAL%
559-
set RETVAL=
558+
set WINPYDIRBASETMP=%~dp0..
559+
pushd %WINPYDIRBASETMP%
560+
set WINPYDIRBASE=%CD%
561+
set WINPYDIRBASETMP=
562+
popd
560563
561564
set WINPYDIR=%WINPYDIRBASE%"""+"\\" + self.python_name + r"""
562565
@@ -609,16 +612,6 @@ def _create_batch_scripts_initial(self):
609612
echo #WINPYWORKDIR = %%HOMEDRIVE%%%%HOMEPATH%%\Documents\WinPython%%WINPYVER%%\Notebooks>>"%winpython_ini%"
610613
)
611614
612-
rem *****
613-
rem http://stackoverflow.com/questions/1645843/resolve-absolute-path-from-relative-path-and-or-file-name
614-
rem *****
615-
:: ========== FUNCTIONS ==========
616-
EXIT /B
617-
618-
:NORMALIZEPATH
619-
SET RETVAL=%~dpfn1
620-
EXIT /B
621-
622615
""")
623616

624617
self.create_batch_script('WinPython_PS_Prompt.ps1', r"""

0 commit comments

Comments
 (0)