Manta Interactive Ray Tracer Development Mailing List

Text archives Help


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


Chronological Thread 
  • From:
  • To:
  • Subject: [Manta] r2392 - trunk/scenes/csafe/python
  • Date: Thu, 26 Mar 2009 17:21:36 -0600 (MDT)

Author: dav
Date: Thu Mar 26 17:21:34 2009
New Revision: 2392

Modified:
   trunk/scenes/csafe/python/SceneMenus.py
Log:
Use CSAFE_DATA_DIR env var for Volume nrrds too.

Modified: trunk/scenes/csafe/python/SceneMenus.py
==============================================================================
--- trunk/scenes/csafe/python/SceneMenus.py     (original)
+++ trunk/scenes/csafe/python/SceneMenus.py     Thu Mar 26 17:21:34 2009
@@ -179,6 +179,13 @@
         dlg = wx.FileDialog(self, message="Choose a Volume file(s)",
            defaultDir=os.getcwd(), defaultFile="",wildcard=wildcard,
            style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR)
+
+        # See if there is a location that the user wants the file dialog to 
default to...
+        csafe_data_dir = os.environ.get( "CSAFE_DATA_DIR" )
+        if csafe_data_dir:
+            if os.path.isdir( csafe_data_dir ):
+                dlg.SetDirectory( csafe_data_dir );
+
         if dlg.ShowModal() == wx.ID_OK:
             paths = dlg.GetPaths()
             selected = self.lb2.GetSelections()


  • [Manta] r2392 - trunk/scenes/csafe/python, dav, 03/26/2009

Archive powered by MHonArc 2.6.16.

Top of page