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
c5c6aa77
Commit
c5c6aa77
authored
Feb 15, 2018
by
Floreal Cabanettes
Browse files
Remove special code for pyinstaller [not required]
parent
d4b84f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/__init__.py
View file @
c5c6aa77
...
...
@@ -32,12 +32,7 @@ def launch(mode="webserver", debug=False):
app_title
=
"D-GENIES - Dotplot large Genomes in an Interactive, Efficient and Simple way"
# Init Flask:
if
getattr
(
sys
,
'frozen'
,
False
):
template_folder
=
os
.
path
.
join
(
sys
.
executable
,
'..'
,
'templates'
)
static_folder
=
os
.
path
.
join
(
sys
.
executable
,
'..'
,
'static'
)
app
=
Flask
(
__name__
,
template_folder
=
template_folder
,
static_folder
=
static_folder
)
else
:
app
=
Flask
(
__name__
,
static_url_path
=
'/static'
)
app
=
Flask
(
__name__
,
static_url_path
=
'/static'
)
app
.
config
[
'UPLOAD_FOLDER'
]
=
UPLOAD_FOLDER
app
.
config
[
'MAX_CONTENT_LENGTH'
]
=
config_reader
.
max_upload_file_size
app
.
config
[
'SECRET_KEY'
]
=
'dsqdsq-255sdA-fHfg52-25Asd5'
...
...
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