MCPcopy Create free account
hub / github.com/EasyIME/PIME / getConfigDir

Method getConfigDir

python/cinbase/config.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self._lastUpdateTime = 0.0
90
91 def getConfigDir(self):
92 config_dir = os.path.join(os.path.expandvars("%APPDATA%"), "PIME", self.imeDirName)
93 os.makedirs(config_dir, mode=0o700, exist_ok=True)
94 return config_dir
95
96 def getConfigFile(self, name="config.json"):
97 return os.path.join(self.getConfigDir(), name)

Callers 3

getConfigFileMethod · 0.95
loadMethod · 0.95
updateMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected