install.py

branch
5_1_x
changeset 1344
54c50e65173f
parent 1189
946daca989b5
child 1347
c1f7967d062f
--- a/install.py	Mon Sep 26 18:08:38 2011 +0200
+++ b/install.py	Sat Oct 01 17:14:40 2011 +0200
@@ -335,9 +335,11 @@
         apidir = getConfig('apidir')
         for progLanguage in progLanguages:
             for name in getConfig('apis'):
-                apiname = os.path.join(apidir, progLanguage, name)
+                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)
     except AttributeError:
         pass
 
@@ -472,6 +474,11 @@
                 shutil.copy(apiName, apidir)
             except EnvironmentError:
                 print("Could not install '{0}'.".format(apiName))
+        for apiName in glob.glob(os.path.join(sourceDir, "APIs", progLanguage, "*.bas")):
+            try:
+                shutil.copy(apiName, apidir)
+            except EnvironmentError:
+                print("Could not install '{0}'.".format(apiName))
         if progLanguage == "Python":
             # copy Python3 API files to the same destination
             for apiName in glob.glob(os.path.join(sourceDir, "APIs", "Python3", "*.api")):
@@ -479,6 +486,11 @@
                     shutil.copy(apiName, apidir)
                 except EnvironmentError:
                     print("Could not install '{0}'.".format(apiName))
+            for apiName in glob.glob(os.path.join(sourceDir, "APIs", "Python3", "*.bas")):
+                try:
+                    shutil.copy(apiName, apidir)
+                except EnvironmentError:
+                    print("Could not install '{0}'.".format(apiName))
     
     # create menu entry for Linux systems
     if sys.platform.startswith("linux"):

eric ide

mercurial