Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
c07075cf
Commit
c07075cf
authored
May 13, 2024
by
Jennifer Wei
Browse files
in scripts/utils.py account for case where no conda environment is specified.
parent
dc93d33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scripts/utils.py
scripts/utils.py
+4
-2
No files found.
scripts/utils.py
View file @
c07075cf
...
@@ -5,8 +5,10 @@ import os
...
@@ -5,8 +5,10 @@ import os
import
sys
import
sys
from
pathlib
import
Path
from
pathlib
import
Path
if
'CONDA_PREFIX'
in
os
.
environ
:
CONDA_ENV_BINARY_PATH
=
Path
(
os
.
environ
[
'CONDA_PREFIX'
])
/
'bin'
CONDA_ENV_BINARY_PATH
=
Path
(
os
.
environ
[
'CONDA_PREFIX'
])
/
'bin'
else
:
CONDA_ENV_BINARY_PATH
=
Path
(
'/bin'
)
def
add_data_args
(
parser
:
argparse
.
ArgumentParser
):
def
add_data_args
(
parser
:
argparse
.
ArgumentParser
):
parser
.
add_argument
(
parser
.
add_argument
(
...
...
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