[GRASS-SVN] r59782 - grass/branches/releasebranch_6_4/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 18 07:03:59 PDT 2014
Author: martinl
Date: 2014-04-18 07:03:59 -0700 (Fri, 18 Apr 2014)
New Revision: 59782
Modified:
grass/branches/releasebranch_6_4/lib/python/task.py
Log:
winGRASS: attempt to fix remaining issue #2138
Modified: grass/branches/releasebranch_6_4/lib/python/task.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/task.py 2014-04-18 08:11:45 UTC (rev 59781)
+++ grass/branches/releasebranch_6_4/lib/python/task.py 2014-04-18 14:03:59 UTC (rev 59782)
@@ -311,6 +311,10 @@
"""!Process module description
"""
self.task.name = self.root.get('name', default = 'unknown')
+ # Python scripts are not really supported by GRASS6 - so we
+ # need to hack a bit
+ if sys.platform == 'win32' and self.task.name.endswith('.py'):
+ self.task.name = os.path.splitext(self.task.name)[0]
# keywords
for keyword in self._get_node_text(self.root, 'keywords').split(','):
More information about the grass-commit
mailing list