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
FSL
openneuro-dl
Commits
a01188dd
Commit
a01188dd
authored
Oct 30, 2019
by
Taylor Hanayik
Browse files
add check for fsldir and update aws join
parent
06a0ba28
Changes
1
Hide whitespace changes
Inline
Side-by-side
openneuro-dl/openneuro_dl
View file @
a01188dd
...
...
@@ -77,7 +77,12 @@ def main():
print("ERROR: an openneuro dataset id must start with 'ds'. Please check your dataset id")
sys.exit(1)
awsbin=join( getenv('FSLDIR'),"fslpython/envs/fslpython/bin","aws")
FSLDIR = getenv('FSLDIR') # returns none if not found
if FSLDIR is None:
print("ERROR: Unable to find FSLDIR evironment variable")
sys.exit(1)
awsbin = join(FSLDIR, "fslpython", "envs", "fslpython", "bin", "aws")
# use subprocess.run to call the aws command to sync from the aws bucket (download the dataset)
run(
...
...
Write
Preview
Supports
Markdown
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