Skip to content

move launcher scripts to python -m module #1667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion portable/launchers_final/scripts/winidle.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
call "%~dp0env_for_icons.bat" %*
"%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
rem "%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
"%WINPYDIR%\python.exe" -m idlelib %*
3 changes: 2 additions & 1 deletion portable/launchers_final/scripts/winipython_notebook.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
call "%~dp0env_for_icons.bat" %*
"%WINPYDIR%\scripts\jupyter-notebook.exe" %*
rem "%WINPYDIR%\scripts\jupyter-notebook.exe" %*
"%WINPYDIR%\python.exe" -m jupyter notebook %*
3 changes: 2 additions & 1 deletion portable/launchers_final/scripts/winjupyter_lab.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
call "%~dp0env_for_icons.bat" %*
"%WINPYDIR%\scripts\jupyter-lab.exe" %*
rem "%WINPYDIR%\scripts\jupyter-lab.exe" %*
"%WINPYDIR%\python.exe" -m jupyter lab %*
4 changes: 2 additions & 2 deletions portable/launchers_final/scripts/winpython.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@echo off
call "%~dp0env_for_icons.bat" %*
rem backward compatibility for non-ptpython users
if exist "%WINPYDIR%\scripts\ptpython.exe" (
"%WINPYDIR%\scripts\ptpython.exe" %*
if exist "%WINPYDIR%\Lib\site-packages\ptpython" (
"%WINPYDIR%\python.exe" -m ptpython %*
) else (
"%WINPYDIR%\python.exe" %*
)
3 changes: 2 additions & 1 deletion portable/launchers_final/scripts/wpcp.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@echo off
call "%~dp0env_for_icons.bat" %*
cmd.exe /k "echo wppm & wppm %*"
rem cmd.exe /k "echo wppm & wppm" %*
cmd.exe /k "echo wppm & python -m wppm" %*