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

Skip to content

provide no-directory_changing scripts #414

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
Oct 18, 2016
Merged
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
37 changes: 32 additions & 5 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,11 @@ def _create_launchers(self):
# workdir='$EXEDIR\scripts')
self.create_launcher('IDLEX (Python GUI).exe', 'python.ico',
command='wscript.exe',
args= r'Noshell.vbs IDLEX.bat')
args= r'Noshell.vbs winidlex.bat')

self.create_launcher('Spyder.exe', 'spyder.ico',
command='wscript.exe',
args=r'Noshell.vbs spyder.bat')
args=r'Noshell.vbs winspyder.bat')

self.create_launcher('Spyder reset.exe', 'spyder_reset.ico',
command='wscript.exe',
Expand All @@ -532,12 +532,12 @@ def _create_launchers(self):
# Jupyter launchers
self.create_launcher('IPython Qt Console.exe', 'ipython.ico',
command='wscript.exe',
args=r'Noshell.vbs qtconsole.bat')
args=r'Noshell.vbs winqtconsole.bat')

# this one needs a shell to kill fantom processes
self.create_launcher('Jupyter Notebook.exe', 'jupyter.ico',
command='$SYSDIR\cmd.exe',
args=r'/k ipython_notebook.bat')
args=r'/k winipython_notebook.bat')

self._print_done()

Expand Down Expand Up @@ -889,7 +889,6 @@ def _create_batch_scripts(self):

self.create_batch_script('idlex.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
rem backward compatibility for non-IDLEX users
if exist "%WINPYDIR%\scripts\idlex.pyw" (
"%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %*
Expand All @@ -898,10 +897,25 @@ def _create_batch_scripts(self):
)
""")

self.create_batch_script('winidlex.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
rem backward compatibility for non-IDLEX users
if exist "%WINPYDIR%\scripts\idlex.pyw" (
"%WINPYDIR%\python.exe" "%WINPYDIR%\scripts\idlex.pyw" %*
) else (
"%WINPYDIR%\python.exe" "%WINPYDIR%\Lib\idlelib\idle.pyw" %*
)
""")
self.create_batch_script('spyder.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\scripts\spyder.exe" %*
""")
self.create_batch_script('winspyder.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\scripts\spyder.exe" %*
""")

self.create_batch_script('spyder_reset.bat',r"""@echo off
Expand All @@ -914,6 +928,12 @@ def _create_batch_scripts(self):
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\scripts\jupyter-notebook.exe" %*
""")

self.create_batch_script('winipython_notebook.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\scripts\jupyter-notebook.exe" %*
""")

self.create_batch_script('qtconsole.bat',r"""@echo off
Expand All @@ -922,6 +942,13 @@ def _create_batch_scripts(self):
"%WINPYDIR%\scripts\jupyter-qtconsole.exe" %*
""")


self.create_batch_script('winqtconsole.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
"%WINPYDIR%\scripts\jupyter-qtconsole.exe" %*
""")

self.create_batch_script('qtdemo.bat',r"""@echo off
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
Expand Down