[GRASS-SVN] r53488 - grass/branches/develbranch_6/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Oct 19 03:52:18 PDT 2012
Author: martinl
Date: 2012-10-19 03:52:18 -0700 (Fri, 19 Oct 2012)
New Revision: 53488
Modified:
grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
Log:
wxGUI: improve AddOns detection on Windows
Modified: grass/branches/develbranch_6/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/core/globalvar.py 2012-10-19 10:38:57 UTC (rev 53487)
+++ grass/branches/develbranch_6/gui/wxpython/core/globalvar.py 2012-10-19 10:52:18 UTC (rev 53488)
@@ -168,13 +168,15 @@
continue
if grassScripts: # win32
name, ext = os.path.splitext(fname)
+ if ext not in ['.exe', '.bat']:
+ continue
if name not in grassCmd:
grassCmd.add(name)
nCmd += 1
- if ext in grassScripts.keys() and \
+ if ext == '.bat' and \
+ ext in grassScripts.keys() and \
name not in grassScripts[ext]:
grassScripts[ext].append(name)
- nCmd += 1
else:
if fname not in grassCmd:
grassCmd.add(fname)
More information about the grass-commit
mailing list