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

Method getConfigDir

python/input_methods/chewing/chewing_config.py:79–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 self.load() # try to load from the config file
78
79 def getConfigDir(self):
80 config_dir = os.path.join(
81 os.path.expandvars("%APPDATA%"), "PIME", "chewing")
82 os.makedirs(config_dir, mode=0o700, exist_ok=True)
83 return config_dir
84
85 def getConfigFile(self, name="config.json"):
86 return os.path.join(self.getConfigDir(), name)

Callers 6

getConfigFileMethod · 0.95
getUserPhraseMethod · 0.95
loadMethod · 0.95
updateMethod · 0.95
initChewingContextMethod · 0.45
config_tool.pyFile · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected