##// END OF EJS Templates
Walter's ipipe patch:...
Walter's ipipe patch: If calling a function in _getattr() raises an AttributeError, return the default. Make xattrs() more robust: If calling __xattrs__() raises an exception fall back to (None,). Make xrepr() more robust: If calling __repr__() raises an exception fall back to using repr(). Replace a generator expression with a list comprehension in the _BrowserLevel constructor so that ipipe stays Python 2.3 compatible. Fix handling of empty lists in ibrowse: You can not enter empty lists, and the browser displays an empty screen with the message <empty>.

File last commit:

r158:e5c7ade6
r231:5f76942f
Show More
update_manual.py
28 lines | 528 B | text/x-python | PythonLexer
#!/usr/bin/env ipython
""" Must be launched via ipython not normal python
Run by:
ipython update_manual.py
"""
import sys,IPython,re
fil=open("magic.tex","w")
oldout=sys.stdout
sys.stdout=fil
_ip.magic("magic -latex")
sys.stdout=oldout
fil.close()
fil=open("manual_base.lyx")
txt=fil.read()
fil.close()
manualtext=re.sub("__version__",IPython.__version__,txt)
fil=open("manual.lyx","w")
fil.write(manualtext)
fil.close()
print "Manual (magic.tex, manual.lyx) succesfully updated, exiting..."
import os
os.abort()