Skip to content

Commit

Permalink
fix for running on mac arm
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Dec 6, 2024
1 parent 9990b47 commit 111a0e4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/apps/load_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,15 @@
if filename not in data_dir:
# check to see if the file has already been downloaded
if not os.path.isfile(hdf5_path):
# wget from S3
# get from S3
http_path = test_file_http_path + filename
print("downloading:", http_path)

if system() == "Windows":
get_cmd = f"curl.exe -o {filename}\
curl_exe = "curl.exe" if system() == "Windows" else "curl"

get_cmd = f"{curl_exe} -o {filename}\
https://s3.amazonaws.com/hdfgroup/data/hdf5test/{filename}\
--create-dirs --output-dir {data_dir}"
else:
get_cmd = f"wget -q\
https://s3.amazonaws.com/hdfgroup/data/hdf5test/{filename}\
-P {data_dir}"

rc = os.system(f"{get_cmd}")
if rc != 0:
Expand Down

0 comments on commit 111a0e4

Please sign in to comment.