##// END OF EJS Templates
maemo scratchbox support: survive missing doctest module and site._Helper
vivainio2 -
Show More
@@ -702,7 +702,10 b' class InteractiveShell(object,Magic):'
702
702
703 # Do a proper resetting of doctest, including the necessary displayhook
703 # Do a proper resetting of doctest, including the necessary displayhook
704 # monkeypatching
704 # monkeypatching
705 doctest_reload()
705 try:
706 doctest_reload()
707 except ImportError:
708 warn("doctest module does not exist.")
706
709
707 # Set user colors (don't do it in the constructor above so that it
710 # Set user colors (don't do it in the constructor above so that it
708 # doesn't crash if colors option is invalid)
711 # doesn't crash if colors option is invalid)
@@ -103,9 +103,12 b' def make_IPython(argv=None,user_ns=None,user_global_ns=None,debug=1,'
103 embedded=embedded,**kw)
103 embedded=embedded,**kw)
104
104
105 # Put 'help' in the user namespace
105 # Put 'help' in the user namespace
106 from site import _Helper
106 try:
107 from site import _Helper
108 IP.user_ns['help'] = _Helper()
109 except ImportError:
110 warn('help() not available - check site.py')
107 IP.user_config_ns = {}
111 IP.user_config_ns = {}
108 IP.user_ns['help'] = _Helper()
109
112
110
113
111 if DEVDEBUG:
114 if DEVDEBUG:
@@ -1,3 +1,8 b''
1 2008-05-27 Ville Vainio <vivainio@gmail.com>
2
3 * iplib.py, ipmaker.py: survive lack of doctest and site._Helper
4 for minimal environments (e.g. Maemo sdk python)
5
1 2008-05-14 Ville Vainio <vivainio@gmail.com>
6 2008-05-14 Ville Vainio <vivainio@gmail.com>
2
7
3 * Extensions/ipy_greedycompleter.py:
8 * Extensions/ipy_greedycompleter.py:
General Comments 0
You need to be logged in to leave comments. Login now