Skip to content
Snippets Groups Projects
Commit 1aa3dbe3 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix: create data dir if not exists

parent f0d3cf2c
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,10 @@ def launch(mode="webserver", debug=False):
from .lib.mailer import Mailer
mailer = Mailer(app)
# Create data dir if not exists
if not os.path.exists(config_reader.app_data):
os.makedirs(config_reader.app_data)
if config_reader.debug and config_reader.log_dir != "stdout" and not os.path.exists(config_reader.log_dir):
os.makedirs(config_reader.log_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment