File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -553,10 +553,13 @@ def _create_batch_scripts_initial(self):
553
553
554
554
self .create_batch_script ('env.bat' , r"""@echo off
555
555
set WINPYDIRBASE=%~dp0..
556
+
556
557
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
560
563
561
564
set WINPYDIR=%WINPYDIRBASE%""" + "\\ " + self .python_name + r"""
562
565
@@ -609,16 +612,6 @@ def _create_batch_scripts_initial(self):
609
612
echo #WINPYWORKDIR = %%HOMEDRIVE%%%%HOMEPATH%%\Documents\WinPython%%WINPYVER%%\Notebooks>>"%winpython_ini%"
610
613
)
611
614
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
-
622
615
""" )
623
616
624
617
self .create_batch_script ('WinPython_PS_Prompt.ps1' , r"""
You can’t perform that action at this time.
0 commit comments