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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 17 01:02:51 PDT 2013


Author: annakrat
Date: 2013-07-17 01:02:51 -0700 (Wed, 17 Jul 2013)
New Revision: 57183

Modified:
   grass/trunk/lib/python/script/task.py
Log:
pythonlib: fix adding .py extension on windows

Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py	2013-07-16 17:30:55 UTC (rev 57182)
+++ grass/trunk/lib/python/script/task.py	2013-07-17 08:02:51 UTC (rev 57183)
@@ -448,7 +448,7 @@
         
         # TODO: replace ugly hack bellow
         if not cmdout and sys.platform == 'win32':
-            if os.path.splitext(cmd)[1] == '':
+            if os.path.splitext(cmd)[1] != '.py':
                 cmd += '.py'
             
             os.chdir(os.path.join(os.getenv('GISBASE'), 'scripts'))



More information about the grass-commit mailing list