Skip to content

Commit 9d7172c

Browse files
committed
adjust directoy path to be relative
1 parent 5d415ba commit 9d7172c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replace-sipi-url.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def replace_urls(obj):
4040

4141
# Project identifier and directory path
4242
project = '0801'
43-
directory = f'../data/{project}' # Directory containing JSON files
43+
directory = os.path.join(os.path.dirname(__file__), '..', 'data', project)
4444
old_url = 'http://iiif.dasch.swiss/'
4545
new_url = 'https://iiif.dasch.swiss/'
4646

0 commit comments

Comments
 (0)