[GRASS-SVN] r50069 - grass/branches/develbranch_6/gui/wxpython/core

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 4 12:44:21 EST 2012


Author: martinl
Date: 2012-01-04 09:44:21 -0800 (Wed, 04 Jan 2012)
New Revision: 50069

Modified:
   grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
Log:
wxGUI: fix wrong backport from relbr64


Modified: grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-04 17:42:09 UTC (rev 50068)
+++ grass/branches/develbranch_6/gui/wxpython/core/globalvar.py	2012-01-04 17:44:21 UTC (rev 50069)
@@ -150,10 +150,9 @@
                 continue
             for fname in os.listdir(path):
                 name, ext = os.path.splitext(fname)
-                if bin:
-                    if ext == EXT_BIN:
+                if not scriptsOnly and ext == EXT_BIN:
                         cmd.append(name)
-                if scripts:
+                if scriptsOnly:
                     if ext == EXT_SCT:
                         cmd.append(name)
                     elif ext == '.py':



More information about the grass-commit mailing list