[GRASS-SVN] r53793 - grass/trunk/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 13 09:53:49 PST 2012


Author: martinl
Date: 2012-11-13 09:53:49 -0800 (Tue, 13 Nov 2012)
New Revision: 53793

Modified:
   grass/trunk/lib/python/core.py
Log:
pythonlib: fix bug in get_commands (don't ignore scripts)


Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py	2012-11-13 17:23:22 UTC (rev 53792)
+++ grass/trunk/lib/python/core.py	2012-11-13 17:53:49 UTC (rev 53793)
@@ -115,7 +115,7 @@
     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':



More information about the grass-commit mailing list