source:
trunk/server/common/patches/ipython-do-not-require-gtk.patch
@
1726
Last change on this file since 1726 was 1726, checked in by ezyang, 14 years ago | |
---|---|
File size: 786 bytes |
-
IPython/Shell.py
diff --git a/IPython/Shell.py b/IPython/Shell.py index 9481099..38006d7 100644
a b class IPShellMatplotlibQt4(IPShellQt4): 1152 1152 def check_gtk(mode): 1153 1153 try: 1154 1154 import gtk 1155 except ImportError: 1155 except (ImportError, RuntimeError): 1156 # GTK not present, or can't be started (no X11, happens in console) 1156 1157 return mode 1157 1158 if hasattr(gtk,'set_interactive'): 1158 1159 gtk.set_interactive(False) … … def _select_shell(argv): 1243 1244 th_mode = 'tkthread' 1244 1245 1245 1246 # New versions of pygtk don't need the brittle threaded support. 1246 th_mode = check_gtk(th_mode) 1247 if th_mode == 'gthread': 1248 th_mode = check_gtk(th_mode) 1247 1249 return th_shell[th_mode] 1248 1250
Note: See TracBrowser
for help on using the repository browser.