[GRASS-SVN] r53473 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 18 09:55:33 PDT 2012


Author: martinl
Date: 2012-10-18 09:55:33 -0700 (Thu, 18 Oct 2012)
New Revision: 53473

Modified:
   grass-addons/tools/addons/build-xml.py
Log:
addons scripts: better parsing wxGUI extensions


Modified: grass-addons/tools/addons/build-xml.py
===================================================================
--- grass-addons/tools/addons/build-xml.py	2012-10-18 16:43:48 UTC (rev 53472)
+++ grass-addons/tools/addons/build-xml.py	2012-10-18 16:55:33 UTC (rev 53473)
@@ -16,8 +16,13 @@
     return mlist
 
 def get_gui_list(g7 = True):
-    return os.listdir(os.path.join(ADDON_PATH, 'grass%s' % ('7' if g7 else '6'),
-                                   'gui', 'wxpython'))
+    mlist = list()
+    for m in os.listdir(os.path.join(ADDON_PATH, 'grass%s' % ('7' if g7 else '6'),
+                                     'gui', 'wxpython')):
+        if len(m) > 3 and m[:3] == 'wx.':
+            mlist.append(m)
+    
+    return mlist
                       
 def start_grass(g7 = True):
     if g7:



More information about the grass-commit mailing list