Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
1aa3dbe3
Commit
1aa3dbe3
authored
Feb 23, 2018
by
Floreal Cabanettes
Browse files
Fix: create data dir if not exists
parent
f0d3cf2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/__init__.py
View file @
1aa3dbe3
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment