Browse Source

wxGUI: fix syntax typos from https://trac.osgeo.org/grass/changeset/49921

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49922 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
d971460ad1
1 changed files with 2 additions and 4 deletions
  1. 2 4
      gui/wxpython/core/globalvar.py

+ 2 - 4
gui/wxpython/core/globalvar.py

@@ -145,10 +145,8 @@ def GetGRASSCmds(scriptsOnly = False):
     
     # scan addons (base)
     addons_base = os.getenv('GRASS_ADDON_BASE')
-    if addons_base:
-        if not os.path.exists(addons_base) or not os.path.isdir(addons_base):
-            continue
-        
+    if addons_base and os.path.exists(addons_base) \
+            and not os.path.isdir(addons_base):
         bpath = os.path.join(addons_base, 'bin')
         if not scriptsOnly and os.path.exists(bpath) and \
                 os.path.isdir(bpath):