[GRASS-SVN] r49462 - grass/trunk/gui/wxpython/gmodeler

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 1 13:31:12 EST 2011


Author: martinl
Date: 2011-12-01 10:31:11 -0800 (Thu, 01 Dec 2011)
New Revision: 49462

Modified:
   grass/trunk/gui/wxpython/gmodeler/frame.py
Log:
wxGUI/gmodeler: fix path for standalone app


Modified: grass/trunk/gui/wxpython/gmodeler/frame.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/frame.py	2011-12-01 15:11:06 UTC (rev 49461)
+++ grass/trunk/gui/wxpython/gmodeler/frame.py	2011-12-01 18:31:11 UTC (rev 49462)
@@ -37,6 +37,8 @@
 import wx.lib.flatnotebook    as FN
 import wx.lib.mixins.listctrl as listmix
 
+if __name__ == "__main__":
+    sys.path.append(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'wxpython'))
 from core                 import globalvar
 from gui_core.widgets     import GNotebook
 from gui_core.goutput     import GMConsole



More information about the grass-commit mailing list