|
|
@ -44,7 +44,10 @@ class gMNd:
|
|
|
|
|
|
|
|
|
|
|
|
def read_config(self):
|
|
|
|
def read_config(self):
|
|
|
|
with open(self.config_file) as configfile:
|
|
|
|
with open(self.config_file) as configfile:
|
|
|
|
|
|
|
|
try:
|
|
|
|
config_dict = yaml.load(configfile, Loader=yaml.FullLoader)
|
|
|
|
config_dict = yaml.load(configfile, Loader=yaml.FullLoader)
|
|
|
|
|
|
|
|
except AttributeError:
|
|
|
|
|
|
|
|
config_dict = yaml.safe_load(configfile)
|
|
|
|
if 'allow_dir_list' in config_dict:
|
|
|
|
if 'allow_dir_list' in config_dict:
|
|
|
|
self.allow_dir_list = config_dict['allow_dir_list']
|
|
|
|
self.allow_dir_list = config_dict['allow_dir_list']
|
|
|
|
if 'base_path' in config_dict:
|
|
|
|
if 'base_path' in config_dict:
|
|
|
|