Commit 06a0ba28 authored by Matthew Webster's avatar Matthew Webster Committed by Taylor Hanayik
Browse files

Pathfix

parent d5ebb042
......@@ -19,7 +19,7 @@ optional arguments:
"""
import argparse
from os.path import abspath, join, exists
from os import getcwd
from os import getcwd, getenv
import sys
from subprocess import run
......@@ -62,7 +62,7 @@ def main():
savename = args.savename
if savename is None:
savename = args.id
savepath = abspath(
join(
args.savepath, savename
......@@ -77,10 +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")
# use subprocess.run to call the aws command to sync from the aws bucket (download the dataset)
run(
[
"aws",
awsbin,
"s3",
"sync",
"--no-sign-request",
......
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