Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1995 - trunk/SwigInterface


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1995 - trunk/SwigInterface
  • Date: Thu, 17 Jan 2008 13:09:24 -0700 (MST)

Author: bigler
Date: Thu Jan 17 13:09:23 2008
New Revision: 1995

Modified:
   trunk/SwigInterface/runwxmanta.py
Log:
runwxmanta.py

  Added some code that doesn't use wxversion if this is a frozen build
  (i.e. using py2app).


Modified: trunk/SwigInterface/runwxmanta.py
==============================================================================
--- trunk/SwigInterface/runwxmanta.py   (original)
+++ trunk/SwigInterface/runwxmanta.py   Thu Jan 17 13:09:23 2008
@@ -8,9 +8,16 @@
 import getopt
 import re
 
-# The first two lines are optional, use them if your application requires a 
specific version of wx.
-import wxversion
-wxversion.ensureMinimal('2.5.3') # or for example: wxversion.select("2.5")
+# This will barf and give warnings if you don't have a new enough
+# version.  The frozen bit turns this off for systems like py2app
+# where the version is frozen in the system.  See:
+# http://wiki.wxpython.org/index.cgi/MultiVersionInstalls
+if not hasattr(sys, "frozen"):
+    # These two lines are optional, use them if your application requires a 
specific version of wx.
+    import wxversion
+    wxversion.ensureMinimal('2.5.3')
+    # This will select a particular version if you have more than one 
installed.
+    #wxversion.select("2.5")
 import wx
 
 import wxManta




  • [Manta] r1995 - trunk/SwigInterface, bigler, 01/17/2008

Archive powered by MHonArc 2.6.16.

Top of page