Browse Source

pythonlib: fix bug in get_commands (don't ignore scripts)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53793 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
130fc6dcbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/python/core.py

+ 1 - 1
lib/python/core.py

@@ -115,7 +115,7 @@ def get_commands():
     def scan(gisbase, directory):
         dir_path = os.path.join(gisbase, directory)
         if os.path.exists(dir_path):
-            for fname in os.listdir(os.path.join(gisbase, 'bin')):
+            for fname in os.listdir(os.path.join(gisbase, directory)):
                 if scripts:  # win32
                     name, ext = os.path.splitext(fname)
                     if ext != '.manifest':