[Yt-svn] yt-commit r1301 - trunk/scripts
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Mon May 11 16:02:12 PDT 2009
Author: mturk
Date: Mon May 11 16:02:12 2009
New Revision: 1301
URL: http://yt.spacepope.org/changeset/1301
Log:
Added a catch for if you don't have WX installed.
Modified:
trunk/scripts/iyt
Modified: trunk/scripts/iyt
==============================================================================
--- trunk/scripts/iyt (original)
+++ trunk/scripts/iyt Mon May 11 16:02:12 2009
@@ -18,7 +18,10 @@
code.interact(doc, None, namespace)
sys.exit()
-ip_shell = IPython.Shell.IPShellMatplotlibWX(user_ns=namespace)
+try:
+ ip_shell = IPython.Shell.IPShellMatplotlibWX(user_ns=namespace)
+except ImportError:
+ ip_shell = IPython.Shell.IPShellMatplotlib(user_ns=namespace)
# The rest is a modified version of the IPython default profile code
More information about the yt-svn
mailing list