def __init__(self): self.app_data_dir = applib.user_data_dir("openkomodo-dev", "ActiveState") if not exists(self.app_data_dir): log.debug("mkdir `%s'", self.app_data_dir) os.makedirs(self.app_data_dir) self.num_builds = self._get_num_builds() self.configs = self._load_configs() # build_num -> config module
def _userAppDataPath(self): # Allow a special environment variable to override the User Data # Dir for a Komodo run. The main motivation for this is bug # 32270. envPath = self._userDataDir if envPath: path = os.path.expanduser(envPath) else: path = applib.user_data_dir(self._appdatadir_name, "ActiveState") return path
def _cidb_path_from_kover(self, kover): ko_user_data_dir = applib.user_data_dir("Komodo", "ActiveState", "%s.%s" % kover) if not exists(ko_user_data_dir): raise OSError("`%s' does not exist" % ko_user_data_dir) return join(ko_user_data_dir, "codeintel.db")