Show More
@@ -70,17 +70,17 b' def run(wait=0):' | |||
|
70 | 70 | |
|
71 | 71 | |
|
72 | 72 | # File and directory names |
|
73 |
ip_dir = program_files_dir + '\ |
|
|
74 |
ip_prog_dir = programs_dir + '\ |
|
|
75 |
doc_dir = ip_dir+'\ |
|
|
76 |
ip_filename = ip_dir+'\ |
|
|
77 |
pycon_icon = doc_dir+'\ |
|
|
73 | ip_dir = program_files_dir + r'\IPython' | |
|
74 | ip_prog_dir = programs_dir + r'\IPython' | |
|
75 | doc_dir = ip_dir+r'\doc' | |
|
76 | ip_filename = ip_dir+r'\IPython_shell.py' | |
|
77 | pycon_icon = doc_dir+r'\pycon.ico' | |
|
78 | 78 | |
|
79 | 79 | if not os.path.isdir(ip_dir): |
|
80 | 80 | os.mkdir(ip_dir) |
|
81 | 81 | |
|
82 | 82 | # Copy startup script and documentation |
|
83 |
shutil.copy(sys.prefix+'\ |
|
|
83 | shutil.copy(sys.prefix+r'\Scripts\ipython',ip_filename) | |
|
84 | 84 | if os.path.isdir(doc_dir): |
|
85 | 85 | shutil.rmtree(doc_dir) |
|
86 | 86 | shutil.copytree('doc',doc_dir) |
@@ -88,9 +88,10 b' def run(wait=0):' | |||
|
88 | 88 | # make shortcuts for IPython, html and pdf docs. |
|
89 | 89 | print 'Making entries for IPython in Start Menu...', |
|
90 | 90 | |
|
91 |
# Create .bat file in \ |
|
|
92 |
fic = open(sys.prefix + '\ |
|
|
93 |
fic.write('"' + sys.prefix + '\ |
|
|
91 | # Create .bat file in \Scripts | |
|
92 | fic = open(sys.prefix + r'\Scripts\ipython.bat','w') | |
|
93 | fic.write('"' + sys.prefix + r'\python.exe' + '" -i ' + '"' + | |
|
94 | sys.prefix + r'\Scripts\ipython" %*') | |
|
94 | 95 | fic.close() |
|
95 | 96 | |
|
96 | 97 | # Create shortcuts in Programs\IPython: |
@@ -98,8 +99,8 b' def run(wait=0):' | |||
|
98 | 99 | os.mkdir(ip_prog_dir) |
|
99 | 100 | os.chdir(ip_prog_dir) |
|
100 | 101 | |
|
101 |
man_pdf = doc_dir + '\ |
|
|
102 |
man_htm = doc_dir + '\ |
|
|
102 | man_pdf = doc_dir + r'\manual.pdf' | |
|
103 | man_htm = doc_dir + r'\manual\manual.html' | |
|
103 | 104 | |
|
104 | 105 | make_shortcut('IPython.lnk',sys.executable, '"%s"' % ip_filename, |
|
105 | 106 | my_documents_dir, |
General Comments 0
You need to be logged in to leave comments.
Login now