示例#1
0
    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
示例#2
0
    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
示例#3
0
 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
示例#4
0
 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
示例#5
0
文件: ci2.py 项目: p4p3r/CodeIntel
 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")
示例#6
0
 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")