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

Method getConfigDir

python/cinbase/debug.py:22–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 "liu.json": "嘸蝦米"})
21
22 def getConfigDir(self):
23 config_dir = os.path.join(os.path.expandvars("%APPDATA%"), "PIME", self.imeDirName)
24 os.makedirs(config_dir, mode=0o700, exist_ok=True)
25 return config_dir
26
27 def getConfigFile(self, name="debug.json"):
28 return os.path.join(self.getConfigDir(), name)

Callers 6

getConfigFileMethod · 0.95
configtool.pyFile · 0.45
initCinBaseContextMethod · 0.45
checkConfigChangeMethod · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected