Skip to content

Commit 1badede

Browse files
committed
bugfix
1 parent 6dd8a0d commit 1badede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glottolog3/scripts/fetch_downloads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
DOWNLOAD_DIR = Path(glottolog3.__file__).parent.joinpath('static', 'download')
1212

1313
for rel, spec in load(DOWNLOAD_DIR.parent / 'downloads.json').items():
14-
d = Path(rel)
14+
d = DOWNLOAD_DIR / rel
1515
if not d.exists():
1616
d.mkdir()
1717
for bs in spec['bitstreams']:
1818
url = 'https://cdstar.shh.mpg.de//bitstreams/{0}/{1}'.format(
1919
spec['oid'], bs['bitstreamid'])
2020
target = d.joinpath(bs['bitstreamid'].replace('_', '-'))
2121
if not target.exists():
22-
print('retrieving {0} {1}'.format(rel, target.name))
22+
print('retrieving {0} {1}'.format(rel, target))
2323
urlretrieve(url, str(target))

0 commit comments

Comments
 (0)