2014-11-26 10:02:24 +08:00
|
|
|
"""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.
|
|
|
|
|
2014-12-12 22:24:53 +08:00
|
|
|
import os
|
2014-11-26 10:02:24 +08:00
|
|
|
|
2014-12-16 04:54:54 +08:00
|
|
|
from IPython.config.manager import BaseJSONConfigManager
|
2014-11-26 10:02:24 +08:00
|
|
|
|
2014-12-16 04:54:54 +08:00
|
|
|
class ConfigManager(BaseJSONConfigManager):
|
2014-12-12 22:24:53 +08:00
|
|
|
"""Config Manager use for storin Javascript side config"""
|
2014-11-26 10:02:24 +08:00
|
|
|
|
2014-12-12 22:24:53 +08:00
|
|
|
def _config_dir(self):
|
2014-11-26 10:02:24 +08:00
|
|
|
return os.path.join(self.profile_dir, 'nbconfig')
|