[GRASS-SVN] r57218 - grass/trunk/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 18 08:59:13 PDT 2013


Author: annakrat
Date: 2013-07-18 08:59:13 -0700 (Thu, 18 Jul 2013)
New Revision: 57218

Modified:
   grass/trunk/lib/python/script/task.py
Log:
pythonlib: fix launching d.rast3d on windows

Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py	2013-07-18 15:09:56 UTC (rev 57217)
+++ grass/trunk/lib/python/script/task.py	2013-07-18 15:59:13 UTC (rev 57218)
@@ -451,7 +451,10 @@
             if os.path.splitext(cmd)[1] != '.py':
                 cmd += '.py'
             
-            os.chdir(os.path.join(os.getenv('GISBASE'), 'scripts'))
+            if cmd == 'd.rast3d.py':
+                os.chdir(os.path.join(os.getenv('GISBASE'), 'etc', 'gui', 'scripts'))
+            else:
+                os.chdir(os.path.join(os.getenv('GISBASE'), 'scripts'))
             p = Popen([sys.executable, cmd, '--interface-description'],
                       stdout = PIPE, stderr = PIPE)
             cmdout, cmderr = p.communicate()



More information about the grass-commit mailing list