Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1968 - trunk/SwigInterface


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1968 - trunk/SwigInterface
  • Date: Sun, 6 Jan 2008 19:13:00 -0700 (MST)

Author: abe
Date: Sun Jan  6 19:12:59 2008
New Revision: 1968

Modified:
   trunk/SwigInterface/runwxmanta.py
Log:

Added code to catch exceptions during initialization.

M    SwigInterface/runwxmanta.py


Modified: trunk/SwigInterface/runwxmanta.py
==============================================================================
--- trunk/SwigInterface/runwxmanta.py   (original)
+++ trunk/SwigInterface/runwxmanta.py   Sun Jan  6 19:12:59 2008
@@ -53,8 +53,15 @@
     # Create the application.
     print "num_workers = "
     print num_workers
-    app = wxManta.MantaApp( sceneCreator, num_workers, renderSize=size )
 
+    try:            
+        app = wxManta.MantaApp( sceneCreator, num_workers, renderSize=size )
+        
+    except Exception, e:
+        print e.type() + " occurred initializing Manta."
+        print e.message()
+        sys.exit(1)
+        
 
     
###########################################################################
     # Perform any additional setup




  • [Manta] r1968 - trunk/SwigInterface, abe, 01/06/2008

Archive powered by MHonArc 2.6.16.

Top of page