##// END OF EJS Templates
Merge branch 'windows-workdir' of http://github.com/darrendale/ipython into darrendale-windows-workdir
Fernando Perez -
r3231:fd953900 merge
parent child Browse files
Show More
@@ -51,26 +51,30 b' def install():'
51 51
52 52 # Now move onto setting the Start Menu up
53 53 ipybase = pjoin(scripts, 'ipython')
54 if 'setuptools' in sys.modules:
55 # let setuptools take care of the scripts:
56 ipybase = ipybase + '-script.py'
57 workdir = "%HOMEDRIVE%%HOMEPATH%"
54 58
55 59 link = pjoin(ip_start_menu, 'IPython.lnk')
56 60 cmd = '"%s"' % ipybase
57 mkshortcut(python,'IPython',link,cmd)
61 mkshortcut(python, 'IPython', link, cmd, workdir)
58 62
59 63 link = pjoin(ip_start_menu, 'pysh.lnk')
60 64 cmd = '"%s" -p sh' % ipybase
61 mkshortcut(python,'IPython (command prompt mode)',link,cmd)
65 mkshortcut(python, 'IPython (command prompt mode)', link, cmd, workdir)
62 66
63 67 link = pjoin(ip_start_menu, 'scipy.lnk')
64 68 cmd = '"%s" -p scipy' % ipybase
65 mkshortcut(python,'IPython (scipy profile)',link,cmd)
69 mkshortcut(python, 'IPython (scipy profile)', link, cmd, workdir)
66 70
67 71 link = pjoin(ip_start_menu, 'ipcontroller.lnk')
68 72 cmd = '"%s" -xy' % pjoin(scripts, 'ipcontroller')
69 mkshortcut(python,'IPython controller',link,cmd)
73 mkshortcut(python, 'IPython controller', link, cmd, workdir)
70 74
71 75 link = pjoin(ip_start_menu, 'ipengine.lnk')
72 76 cmd = '"%s"' % pjoin(scripts, 'ipengine')
73 mkshortcut(python,'IPython engine',link,cmd)
77 mkshortcut(python, 'IPython engine', link, cmd, workdir)
74 78
75 79 # Create documentation shortcuts ...
76 80 t = prefix + r'\share\doc\ipython\manual\ipython.pdf'
@@ -232,8 +232,6 b" if 'setuptools' in sys.modules:"
232 232 test='nose>=0.10.1',
233 233 security='pyOpenSSL>=0.6'
234 234 )
235 # Allow setuptools to handle the scripts
236 scripts = []
237 235 else:
238 236 # If we are running without setuptools, call this function which will
239 237 # check for dependencies an inform the user what is needed. This is
@@ -278,7 +278,7 b' def find_scripts():'
278 278 file=sys.stderr)
279 279 sys.exit(1)
280 280 scripts.append(pjoin('scripts','ipython_win_post_install.py'))
281
281
282 282 return scripts
283 283
284 284 #---------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now