Moved the language API databases into a subdirectory of the config dir.

Sun, 17 Jan 2010 20:17:54 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 17 Jan 2010 20:17:54 +0000
changeset 4
eb4cc276920c
parent 3
72809a517689
child 5
e1a56c9a9c9d

Moved the language API databases into a subdirectory of the config dir.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
--- 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):
         """
Binary file PluginAssistantEric.zip has changed

eric ide

mercurial