File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,19 @@ class BaseJSONConfigManager(LoggingConfigurable):
47
47
read_directory = Bool (True )
48
48
49
49
def ensure_config_dir_exists (self ):
50
+ """Will try to create the config_dir directory."""
50
51
try :
51
52
os .makedirs (self .config_dir , 0o755 )
52
53
except OSError as e :
53
54
if e .errno != errno .EEXIST :
54
55
raise
55
56
56
57
def file_name (self , section_name ):
58
+ """Returns the json filename for the section_name: {config_dir}/{section_name}.json"""
57
59
return os .path .join (self .config_dir , section_name + '.json' )
58
60
59
61
def directory (self , section_name ):
62
+ """Returns the directory name for the section name: {config_dir}/{section_name}.d"""
60
63
return os .path .join (self .config_dir , section_name + '.d' )
61
64
62
65
def get (self , section_name ):
You can’t perform that action at this time.
0 commit comments