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

Skip to content

cleanups #284

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 2 commits into from
Mar 7, 2016
Merged
Changes from 1 commit
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
Next Next commit
simplify code
  • Loading branch information
stonebig committed Mar 7, 2016
commit ec14871d4d5a1c75401dac383fe1d95da4d5b29c
38 changes: 13 additions & 25 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def create_batch_script(self, name, contents):
fd.close()

def create_launcher(self, name, icon, command=None,
args=None, workdir=None,
args=None, workdir=r'$EXEDIR\scripts',
launcher='launcher_basic.nsi'):
"""Create exe launcher with NSIS"""
assert name.endswith('.exe')
Expand Down Expand Up @@ -495,70 +495,58 @@ def _create_launchers(self):
self._print("Creating launchers")
self.create_launcher('WinPython Command Prompt.exe', 'cmd.ico',
command='$SYSDIR\cmd.exe',
args=r'/k cmd.bat',
workdir='$EXEDIR\scripts')
args=r'/k cmd.bat')

self.create_launcher('WinPython Interpreter.exe', 'python.ico',
command='$SYSDIR\cmd.exe',
args= r'/k python.bat',
workdir='$EXEDIR\scripts')
args= r'/k python.bat')

#self.create_launcher('IDLEX (students).exe', 'python.ico',
# command='$SYSDIR\cmd.exe',
# args= r'/k IDLEX_for_student.bat %*',
# workdir='$EXEDIR\scripts')
self.create_launcher('IDLEX (Python GUI).exe', 'python.ico',
command='wscript.exe',
args= r'Noshell.vbs IDLEX.bat',
workdir='$EXEDIR\scripts')
args= r'Noshell.vbs IDLEX.bat')

self.create_launcher('Spyder.exe', 'spyder.ico',
command='wscript.exe',
args=r'Noshell.vbs spyder.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs spyder.bat')

self.create_launcher('Spyder reset.exe', 'spyder_reset.ico',
command='wscript.exe',
args=r'Noshell.vbs spyder_reset.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs spyder_reset.bat')

self.create_launcher('WinPython Control Panel.exe', 'winpython.ico',
command='wscript.exe',
args=r'Noshell.vbs wpcp.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs wpcp.bat')

# Multi-Qt launchers (Qt5 has priority if found)
self.create_launcher('Qt Demo.exe', 'qt.ico',
command='wscript.exe',
args=r'Noshell.vbs qtdemo.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs qtdemo.bat')

self.create_launcher('Qt Assistant.exe', 'qtassistant.ico',
command='wscript.exe',
args=r'Noshell.vbs qtassistant.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs qtassistant.bat')

self.create_launcher('Qt Designer.exe', 'qtdesigner.ico',
command='wscript.exe',
args=r'Noshell.vbs qtdesigner.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs qtdesigner.bat')

self.create_launcher('Qt Linguist.exe', 'qtlinguist.ico',
command='wscript.exe',
args=r'Noshell.vbs qtlinguist.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs qtlinguist.bat')

# Jupyter launchers
self.create_launcher('IPython Qt Console.exe', 'ipython.ico',
command='wscript.exe',
args=r'Noshell.vbs qtconsole.bat',
workdir='$EXEDIR\Scripts')
args=r'Noshell.vbs qtconsole.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',
workdir='$EXEDIR\Scripts')
args=r'/k ipython_notebook.bat')

self._print_done()

Expand Down