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
SOaAS
psot.repository
Commits
4be6ffd5
Commit
4be6ffd5
authored
Aug 02, 2017
by
Lukas Jelonek
Browse files
Use env import instead of changing the module search path by hand in run scripts
parent
2e198433
Changes
5
Hide whitespace changes
Inline
Side-by-side
scripts/env.py
0 → 100644
View file @
4be6ffd5
import
sys
import
os
# append module root directory to sys.path
sys
.
path
.
append
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)
)
)
)
scripts/run_blastp.py
View file @
4be6ffd5
#!/usr/bin/env python3
import
os
import
sys
# add psot libraries to module search path
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)))
import
env
import
argparse
from
psot
import
config
from
os
import
system
...
...
scripts/run_ghostx.py
View file @
4be6ffd5
#!/usr/bin/env python3
import
os
import
sys
# add psot libraries to module search path
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)))
import
env
import
argparse
import
re
from
os
import
system
,
makedirs
...
...
scripts/run_hmmer.py
View file @
4be6ffd5
#!/usr/bin/env python3
import
os
import
sys
# add psot libraries to module search path
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)))
import
env
import
argparse
from
psot
import
config
from
os
import
system
,
makedirs
...
...
scripts/run_signalp.py
View file @
4be6ffd5
#!/usr/bin/env python3
import
os
import
sys
# add psot libraries to module search path
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)))
import
env
import
argparse
from
psot
import
config
from
os
import
system
...
...
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