Commit a01188dd authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

add check for fsldir and update aws join

parent 06a0ba28
......@@ -77,7 +77,12 @@ def main():
print("ERROR: an openneuro dataset id must start with 'ds'. Please check your dataset id")
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")
awsbin = join(FSLDIR, "fslpython", "envs", "fslpython", "bin", "aws")
# use to call the aws command to sync from the aws bucket (download the dataset)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment