Skip to content

Commit 35e5ced

Browse files
committed
reduce further .bat
1 parent 4ef9f5e commit 35e5ced

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

winpython/portable/launchers_final/scripts/env.bat

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
@echo off
2-
3-
rem default if init fails
4-
set WINPYthon_subdirectory_name=python
5-
set WINPYthon_exe=python.exe
62
rem read init variables
73
FOR /F "usebackq tokens=1,2 delims==" %%G IN ("%~dp0env.ini") DO (set %%G=%%H)
84

@@ -16,14 +12,10 @@ if "%WINPYDIRBASE:~-1%"=="\" set WINPYDIRBASE=%WINPYDIRBASE:~0,-1%
1612
set WINPYDIRBASETMP=
1713
popd
1814

19-
set WINPYDIR=%WINPYDIRBASE%\%WINPYthon_subdirectory_name%
20-
rem 2019-08-25 pyjulia needs absolutely a variable PYTHON=%WINPYDIR%\python.exe
21-
set PYTHON=%WINPYDIR%\%WINpython_exe%
15+
set WINPYDIR=%WINPYDIRBASE%\python
16+
set PYTHON=%WINPYDIR%\python.exe
2217

23-
rem 2023-02-12 utf-8 on console to avoid pip crash
24-
rem see https://github.com/pypa/pip/issues/11798#issuecomment-1427069681
2518
set PYTHONIOENCODING=utf-8
26-
2719
set HOME=%WINPYDIRBASE%\settings
2820

2921
rem Remove all double quotes

winpython/portable/launchers_final/scripts/make_working_directory_and_userprofile_be_winpython.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

winpython/portable/launchers_final/scripts/make_working_directory_be_not_winpython.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

winpython/portable/launchers_final/scripts/make_working_directory_be_winpython.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)