manager.py
21 lines
| 679 B
| text/x-python
|
PythonLexer
Thomas Kluyver
|
r19083 | """Manager to read and modify frontend config data in JSON files. | ||
""" | ||||
# Copyright (c) IPython Development Team. | ||||
# Distributed under the terms of the Modified BSD License. | ||||
Matthias Bussonnier
|
r19571 | from IPython.config.manager import BaseJSONConfigManager | ||
Min RK
|
r20867 | from IPython.utils.path import locate_profile | ||
from IPython.utils.traitlets import Unicode | ||||
Thomas Kluyver
|
r19083 | |||
Matthias Bussonnier
|
r19571 | class ConfigManager(BaseJSONConfigManager): | ||
Thomas Kluyver
|
r20495 | """Config Manager used for storing notebook frontend config""" | ||
Min RK
|
r20867 | |||
profile = Unicode('default', config=True) | ||||
profile_dir = Unicode(config=True) | ||||
def _profile_dir_default(self): | ||||
return locate_profile(self.profile) | ||||
Thomas Kluyver
|
r19083 | |||
Min RK
|
r20867 | def _config_dir_default(self): | ||
return self.profile_dir | ||||