Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2407 - trunk/scenes/csafe/python


Chronological Thread 
  • From:
  • To:
  • Subject: [Manta] r2407 - trunk/scenes/csafe/python
  • Date: Fri, 8 May 2009 15:55:55 -0600

Author: dav
Date: Fri May  8 15:55:55 2009
New Revision: 2407

Modified:
   trunk/scenes/csafe/python/csafe_scene.py
Log:
Clean up file.  Give updraft users a hint to where a newer version of python 
is.

Modified: trunk/scenes/csafe/python/csafe_scene.py
==============================================================================
--- trunk/scenes/csafe/python/csafe_scene.py    (original)
+++ trunk/scenes/csafe/python/csafe_scene.py    Fri May  8 15:55:55 2009
@@ -37,23 +37,36 @@
 # Import wxManta gui and some system modules.
 #import wxversion
 #wxversion.ensureMinimal("2.8")
-import getopt, sys, re
+
+import sys, os
+
+##############################################################################
+# Validate that we have a new enoug python:
+
 if float(sys.version[0:3]) < 2.4:
-  print "ERROR python version must be at least 2.4"
+  print
+  print "ERROR: Python version must be at least 2.4.  (You have " + 
sys.version[0:3] + ")"
+  print
+  if os.path.isfile( "/uufs/chpc.utah.edu/sys/pkg/python/std/bin/python" ) :
+    print "Try using /uufs/chpc.utah.edu/sys/pkg/python/std/bin/python."
+    print
   sys.exit()
 
+##############################################################################
+
 from manta import *
-import sys, os, time, traceback, types
-import wx
-import wx.lib.scrolledpanel as scrolled
-#from wx.lib.wordwrap import wordwrap
+from csafe import *
 
-from csafe   import *
 import wxManta
-from wxManta import moveToMouse
+from   wxManta import moveToMouse
+
+import time, traceback, types
+import wx
+import wx.lib.scrolledpanel as scrolled
 
+import getopt, re
 import wx.lib.buttons
-import sys, os, time, traceback, types
+import time, traceback, types
 import random
 import wx
 import Histogram


  • [Manta] r2407 - trunk/scenes/csafe/python, dav, 05/08/2009

Archive powered by MHonArc 2.6.16.

Top of page