[GRASS-SVN] r37543 - in grass/trunk/gui: scripts wxpython/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 27 16:55:09 EDT 2009
Author: martinl
Date: 2009-05-27 16:55:09 -0400 (Wed, 27 May 2009)
New Revision: 37543
Modified:
grass/trunk/gui/scripts/g.change.gui.py
grass/trunk/gui/scripts/v.type_wrapper.py
grass/trunk/gui/wxpython/scripts/d.rast3d
Log:
fix importing grass.script (2)
Modified: grass/trunk/gui/scripts/g.change.gui.py
===================================================================
--- grass/trunk/gui/scripts/g.change.gui.py 2009-05-27 20:46:11 UTC (rev 37542)
+++ grass/trunk/gui/scripts/g.change.gui.py 2009-05-27 20:55:09 UTC (rev 37543)
@@ -35,8 +35,8 @@
# simple front end to g.gui to be used from within the GUI.
-import grass
import sys
+from grass.script import core as grass
def main():
grass.exec_command("g.gui", flags = 'nu', gui = options['gui'])
Modified: grass/trunk/gui/scripts/v.type_wrapper.py
===================================================================
--- grass/trunk/gui/scripts/v.type_wrapper.py 2009-05-27 20:46:11 UTC (rev 37542)
+++ grass/trunk/gui/scripts/v.type_wrapper.py 2009-05-27 20:55:09 UTC (rev 37543)
@@ -52,8 +52,8 @@
#% answer: boundary to line
#%end
-import grass
import sys
+from grass.script import core as grass
def main():
if options['type'] == "point to centroid":
Modified: grass/trunk/gui/wxpython/scripts/d.rast3d
===================================================================
--- grass/trunk/gui/wxpython/scripts/d.rast3d 2009-05-27 20:46:11 UTC (rev 37542)
+++ grass/trunk/gui/wxpython/scripts/d.rast3d 2009-05-27 20:55:09 UTC (rev 37543)
@@ -29,7 +29,7 @@
#% required : yes
#%end
-import grass
+from grass.script import core as grass
if __name__ == "__main__":
options, flags = grass.parser()
More information about the grass-commit
mailing list