(self)
| 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) |
no test coverage detected