[GRASS-SVN] r67533 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 10 02:26:30 PST 2016
Author: martinl
Date: 2016-01-10 02:26:29 -0800 (Sun, 10 Jan 2016)
New Revision: 67533
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
Log:
g.gui.mwprecip: add gui modules to sys.path by calling set_gui_path()
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2016-01-10 03:06:13 UTC (rev 67532)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2016-01-10 10:26:29 UTC (rev 67533)
@@ -1,12 +1,19 @@
#!/usr/bin/env python
VERSION = 1.2
-import sys,os
+import sys
+import os
+
+# TODO: replace by pygrass.utils.set_path()
sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc', 'g.gui.mwprecip'))
import grass.script as grass
from mw_util import *
from mw3 import *
import tempfile
import time
+
+from grass.script.setup import set_gui_path
+set_gui_path()
+
from core.gcmd import GMessage, GError
from gui_core import gselect
from core.gthread import gThread
More information about the grass-commit
mailing list