Browse Source

pythonlib: fix adding .py extension on windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57183 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 years ago
parent
commit
46909b37bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/script/task.py

+ 1 - 1
lib/python/script/task.py

@@ -448,7 +448,7 @@ def get_interface_description(cmd):
         
         # 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'))