fiddling with licenses.json file pathing

This commit is contained in:
alexzvk 2022-11-28 22:36:39 -05:00
parent 2923cc84c2
commit de9a6b656d

View File

@ -331,7 +331,7 @@ def handle_licenses():
with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
selected_title = f.readline()
with open('/licenses.json', 'r') as f:
with open('licenses.json', 'r') as f:
titles_dict = json.load(f)
# access the title to filename dictionary to find the correct file
# using a dictionary instead of looping reduces time complexity