Skip to content

Commit fb88d1d

Browse files
mfschmidteffigies
authored andcommitted
build correct url from windows paths
1 parent 9f5462b commit fb88d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templateflow/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _s3_get(filepath):
292292
import requests
293293

294294
path = str(filepath.relative_to(TF_LAYOUT.root))
295-
url = "%s/%s" % (TF_S3_ROOT, path)
295+
url = "%s/%s" % (TF_S3_ROOT, path.replace("\\", "/"))
296296

297297
print("Downloading %s" % url, file=stderr)
298298
# Streaming, so we can iterate over the response.

0 commit comments

Comments
 (0)