@@ -308,7 +308,7 @@ def create_batch_script(self, name, contents):
308
308
fd .close ()
309
309
310
310
def create_launcher (self , name , icon , command = None ,
311
- args = None , workdir = None ,
311
+ args = None , workdir = r'$EXEDIR\scripts' ,
312
312
launcher = 'launcher_basic.nsi' ):
313
313
"""Create exe launcher with NSIS"""
314
314
assert name .endswith ('.exe' )
@@ -495,70 +495,58 @@ def _create_launchers(self):
495
495
self ._print ("Creating launchers" )
496
496
self .create_launcher ('WinPython Command Prompt.exe' , 'cmd.ico' ,
497
497
command = '$SYSDIR\cmd.exe' ,
498
- args = r'/k cmd.bat' ,
499
- workdir = '$EXEDIR\scripts' )
498
+ args = r'/k cmd.bat' )
500
499
501
500
self .create_launcher ('WinPython Interpreter.exe' , 'python.ico' ,
502
501
command = '$SYSDIR\cmd.exe' ,
503
- args = r'/k python.bat' ,
504
- workdir = '$EXEDIR\scripts' )
502
+ args = r'/k python.bat' )
505
503
506
504
#self.create_launcher('IDLEX (students).exe', 'python.ico',
507
505
# command='$SYSDIR\cmd.exe',
508
506
# args= r'/k IDLEX_for_student.bat %*',
509
507
# workdir='$EXEDIR\scripts')
510
508
self .create_launcher ('IDLEX (Python GUI).exe' , 'python.ico' ,
511
509
command = 'wscript.exe' ,
512
- args = r'Noshell.vbs IDLEX.bat' ,
513
- workdir = '$EXEDIR\scripts' )
510
+ args = r'Noshell.vbs IDLEX.bat' )
514
511
515
512
self .create_launcher ('Spyder.exe' , 'spyder.ico' ,
516
513
command = 'wscript.exe' ,
517
- args = r'Noshell.vbs spyder.bat' ,
518
- workdir = '$EXEDIR\Scripts' )
514
+ args = r'Noshell.vbs spyder.bat' )
519
515
520
516
self .create_launcher ('Spyder reset.exe' , 'spyder_reset.ico' ,
521
517
command = 'wscript.exe' ,
522
- args = r'Noshell.vbs spyder_reset.bat' ,
523
- workdir = '$EXEDIR\Scripts' )
518
+ args = r'Noshell.vbs spyder_reset.bat' )
524
519
525
520
self .create_launcher ('WinPython Control Panel.exe' , 'winpython.ico' ,
526
521
command = 'wscript.exe' ,
527
- args = r'Noshell.vbs wpcp.bat' ,
528
- workdir = '$EXEDIR\Scripts' )
522
+ args = r'Noshell.vbs wpcp.bat' )
529
523
530
524
# Multi-Qt launchers (Qt5 has priority if found)
531
525
self .create_launcher ('Qt Demo.exe' , 'qt.ico' ,
532
526
command = 'wscript.exe' ,
533
- args = r'Noshell.vbs qtdemo.bat' ,
534
- workdir = '$EXEDIR\Scripts' )
527
+ args = r'Noshell.vbs qtdemo.bat' )
535
528
536
529
self .create_launcher ('Qt Assistant.exe' , 'qtassistant.ico' ,
537
530
command = 'wscript.exe' ,
538
- args = r'Noshell.vbs qtassistant.bat' ,
539
- workdir = '$EXEDIR\Scripts' )
531
+ args = r'Noshell.vbs qtassistant.bat' )
540
532
541
533
self .create_launcher ('Qt Designer.exe' , 'qtdesigner.ico' ,
542
534
command = 'wscript.exe' ,
543
- args = r'Noshell.vbs qtdesigner.bat' ,
544
- workdir = '$EXEDIR\Scripts' )
535
+ args = r'Noshell.vbs qtdesigner.bat' )
545
536
546
537
self .create_launcher ('Qt Linguist.exe' , 'qtlinguist.ico' ,
547
538
command = 'wscript.exe' ,
548
- args = r'Noshell.vbs qtlinguist.bat' ,
549
- workdir = '$EXEDIR\Scripts' )
539
+ args = r'Noshell.vbs qtlinguist.bat' )
550
540
551
541
# Jupyter launchers
552
542
self .create_launcher ('IPython Qt Console.exe' , 'ipython.ico' ,
553
543
command = 'wscript.exe' ,
554
- args = r'Noshell.vbs qtconsole.bat' ,
555
- workdir = '$EXEDIR\Scripts' )
544
+ args = r'Noshell.vbs qtconsole.bat' )
556
545
557
546
# this one needs a shell to kill fantom processes
558
547
self .create_launcher ('Jupyter Notebook.exe' , 'jupyter.ico' ,
559
548
command = '$SYSDIR\cmd.exe' ,
560
- args = r'/k ipython_notebook.bat' ,
561
- workdir = '$EXEDIR\Scripts' )
549
+ args = r'/k ipython_notebook.bat' )
562
550
563
551
self ._print_done ()
564
552
0 commit comments