Sun, 17 Jan 2010 20:17:54 +0000
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): """