This commit is contained in:
soju6jan
2022-10-03 11:51:33 +09:00
parent b162aa0d25
commit 7e7fd6484b

View File

@@ -298,6 +298,9 @@ class Framework:
os.path.join(self.path_app_root, 'files', 'config.yaml.template'), os.path.join(self.path_app_root, 'files', 'config.yaml.template'),
self.config['config_filepath'] self.config['config_filepath']
) )
print((self.config))
print(self.config['config_filepath'])
#os.environ['FLASK_FARM_CONFIG_FILEPATH'] = self.config['config_filepath'] #os.environ['FLASK_FARM_CONFIG_FILEPATH'] = self.config['config_filepath']
#else: #else:
@@ -314,6 +317,7 @@ class Framework:
self.config['path_data'] = os.path.join(self.config['path_working'], 'data') self.config['path_data'] = os.path.join(self.config['path_working'], 'data')
self.path_data = self.config['path_data'] self.path_data = self.config['path_data']
def __make_default_dir(self): def __make_default_dir(self):
os.makedirs(self.config['path_data'], exist_ok=True) os.makedirs(self.config['path_data'], exist_ok=True)