From ebf557863c5c6921e1e1918017d67f69ad131468 2008-08-27 02:40:43 From: Fernando Perez Date: 2008-08-27 02:40:43 Subject: [PATCH] Fix problem with windows installer script: html docs were not found. --- diff --git a/IPython/ColorANSI.py b/IPython/ColorANSI.py index ea875c0..59ba6af 100644 --- a/IPython/ColorANSI.py +++ b/IPython/ColorANSI.py @@ -46,6 +46,15 @@ def make_color_table(in_class): for name,value in color_templates: setattr(in_class,name,in_class._base % value) + # Automatically add Blink versions of the above colors. This + # just involves setting the attribute field (before the first + # semicolon) to '5'. + # Note: this is a little easter egg contributed by Peter Wang from + # Enthought at the Scipy2008 sprint :) + value = '5'+value[1:] + setattr(in_class,"Blink"+name,in_class._base % value) + + class TermColors: """Color escape sequences. diff --git a/scripts/ipython_win_post_install.py b/scripts/ipython_win_post_install.py index fa0ca53..ace3306 100755 --- a/scripts/ipython_win_post_install.py +++ b/scripts/ipython_win_post_install.py @@ -40,7 +40,7 @@ def install(): print ('To take full advantage of IPython, you need readline from:\n' 'http://sourceforge.net/projects/uncpythontools') - ipybase = '"'+prefix+r'\scripts\ipython"' + ipybase = '"' + prefix + r'\scripts\ipython"' # Create IPython entry ... if not os.path.isdir(ip_dir): os.mkdir(ip_dir) @@ -59,12 +59,12 @@ def install(): a = ipybase+' -pylab -p scipy' mkshortcut(python,'IPython scipy profile',f,a) - # Create documentation shortcuts ... + # Create documentation shortcuts ... t = prefix + r'\share\doc\ipython\manual\ipython.pdf' f = ip_dir + r'\Manual in PDF.lnk' mkshortcut(t,r'IPython Manual - PDF-Format',f) - t = prefix + r'\share\doc\ipython\manual\ipython.html' + t = prefix + r'\share\doc\ipython\manual\html\index.html' f = ip_dir + r'\Manual in HTML.lnk' mkshortcut(t,'IPython Manual - HTML-Format',f)