[Yt-svn] yt-commit r539 - trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Thu Jun 5 11:32:27 PDT 2008


Author: mturk
Date: Thu Jun  5 11:32:27 2008
New Revision: 539
URL: http://yt.spacepope.org/changeset/539

Log:
For python2.4 compatibility...

(yay datastar, yay aix)



Modified:
   trunk/yt/raven/__init__.py

Modified: trunk/yt/raven/__init__.py
==============================================================================
--- trunk/yt/raven/__init__.py	(original)
+++ trunk/yt/raven/__init__.py	Thu Jun  5 11:32:27 2008
@@ -66,7 +66,10 @@
 color_maps = matplotlib.cm.cmapnames + raven_colormaps.keys()
 
 from PlotCollection import *
-from PlotConfig import *
+try:
+    from PlotConfig import *
+except ImportError:
+    mylog.warn("No automated plotting.  Thanks, elementtree!")
 
 try:
     from Plot3DInterface import *



More information about the yt-svn mailing list