uninstall.py

branch
5_1_x
changeset 1344
54c50e65173f
parent 1185
d47de1d09f7c
child 1347
c1f7967d062f
--- a/uninstall.py	Mon Sep 26 18:08:38 2011 +0200
+++ b/uninstall.py	Sat Oct 01 17:14:40 2011 +0200
@@ -20,6 +20,7 @@
 # Define the globals.
 progName = None
 pyModDir = None
+progLanguages = ["Python", "Ruby"]
 
 def usage(rcode = 2):
     """Display a usage message and exit.
@@ -122,9 +123,12 @@
     
     # Cleanup API files
     apidir = getConfig('apidir')
-    for name in getConfig('apis'):
-        apiname = os.path.join(apidir, name)
-        if os.path.exists(apiname):
+    for progLanguage in progLanguages:
+        for name in getConfig('apis'):
+            apiname = os.path.join(apidir, progLanguage.lower(), name)
+            if os.path.exists(apiname):
+                os.remove(apiname)
+        for apiName in glob.glob(os.path.join(apidir, progLanguage.lower(), "*.bas")):
             os.remove(apiname)
     
 def main(argv):

eric ide

mercurial