Fixed another bug in the modified install script.

Fri, 17 Sep 2010 19:29:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 17 Sep 2010 19:29:39 +0200
changeset 625
a2d295ee30ba
parent 624
d2ff1cb672eb
child 626
41e79c291eff

Fixed another bug in the modified install script.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Fri Sep 17 11:05:21 2010 +0200
+++ b/install.py	Fri Sep 17 19:29:39 2010 +0200
@@ -492,15 +492,15 @@
     """
     Create a config file with the respective config entries.
     """
-    global cfg
+    global cfg, sourceDir
     
     apis = []
     for progLanguage in progLanguages:
-        for apiName in glob.glob(os.path.join("eric", "APIs", progLanguage, "*.api")):
+        for apiName in glob.glob(os.path.join(sourceDir, "APIs", progLanguage, "*.api")):
             apis.append(os.path.basename(apiName))
         if progLanguage == "Python":
             # treat Python3 API files the same as Python API files
-            for apiName in glob.glob(os.path.join("eric", "APIs", "Python3", "*.api")):
+            for apiName in glob.glob(os.path.join(sourceDir, "APIs", "Python3", "*.api")):
                 apis.append(os.path.basename(apiName))
     
     fn = 'eric5config.py'

eric ide

mercurial