Skip to content
GitLab
Menu
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
bac9e755
Commit
bac9e755
authored
Feb 15, 2018
by
Floreal Cabanettes
Browse files
Add sysexec tag in config
parent
c5c6aa77
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dgenies/config_reader.py
View file @
bac9e755
...
...
@@ -46,7 +46,8 @@ class AppConfigReader:
def
_replace_vars
(
self
,
path
,
config
=
False
):
new_path
=
path
.
replace
(
"###USER###"
,
os
.
path
.
expanduser
(
"~"
))
\
.
replace
(
"###PROGRAM###"
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))))
.
replace
(
"###PROGRAM###"
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))))
\
.
replace
(
"###SYSEXEC###"
,
os
.
path
.
dirname
(
sys
.
executable
))
if
"###CONFIG###"
in
new_path
:
if
config
:
raise
Exception
(
"###CONFIG### tag not allowed for config dir"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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