AssistantEric/APIsManager.py

changeset 4
eb4cc276920c
parent 2
89cbc07f4bf0
child 17
8f33c2f5bfbd
--- a/AssistantEric/APIsManager.py	Sun Jan 17 19:23:57 2010 +0000
+++ b/AssistantEric/APIsManager.py	Sun Jan 17 20:17:54 2010 +0000
@@ -465,7 +465,10 @@
             return os.path.join(self.__project.getProjectManagementDir(), 
                                 "project-apis.db")
         else:
-            return os.path.join(Utilities.getConfigDir(), "%s-api.db" % self.__language)
+            apiDir = os.path.join(Utilities.getConfigDir(), "APIs")
+            if not os.path.exists(apiDir):
+                os.makedirs(apiDir)
+            return os.path.join(apiDir, "%s-api.db" % self.__language)
     
     def close(self):
         """

eric ide

mercurial