Author: ks156
Date: 2009-12-04 14:29:52 +0100 (Fri, 04 Dec 2009)
New Revision: 5938

Modified:
   software_suite_v3/software/gadget/online_only/trunk/build.py
Log:
* Now, the script parse the gadget directories.

Modified: software_suite_v3/software/gadget/online_only/trunk/build.py
===================================================================
--- software_suite_v3/software/gadget/online_only/trunk/build.py        
2009-12-04 13:27:02 UTC (rev 5937)
+++ software_suite_v3/software/gadget/online_only/trunk/build.py        
2009-12-04 13:29:52 UTC (rev 5938)
@@ -9,16 +9,6 @@
 
 from builder.GadgetPackager import GadgetPackager
 
-gadgetsList = [
-    "gadget_1bc7a418-569d-3b72-3463-ebfe5eb1442e",
-    "gadget_7e336960-94ea-6d50-31f7-38655786cb51",
-    "gadget_8dfa526b-b6e6-42b5-a913-634dbf04e19a",
-    "gadget_73b9a87c-1244-de8d-ef91-467db879e291",
-    "gadget_a11cd67a-4bae-bab6-d146-2429a97cd500",
-    "gadget_ee51da83-f96e-e265-e432-d009b927e5bd",
-    "gadget_4d6ec4f1-9fd7-4092-a3d6-dd0c6e578051",
-]
-
 # 
==============================================================================
 # Class to retrieve the py file path.
 # 
==============================================================================
@@ -33,5 +23,10 @@
 
 if __name__ == "__main__":
     basePath = localFilePath().getPath()
-    for gadget in gadgetsList:
-        GadgetPackager().createScg(os.path.join(basePath, gadget))
+
+    # List all the directories
+    directoriesList = filter (os.path.isdir, os.listdir(os.getcwd()))
+    for gadget in directoriesList:
+        # Be sure that the directory is a gadget
+        if gadget.find("gadget") != -1:
+            GadgetPackager().createScg(os.path.join(basePath, gadget))


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to