From 2923cc84c28c9f357db52899dff1e7548bb371c5 Mon Sep 17 00:00:00 2001 From: alexzvk Date: Mon, 28 Nov 2022 22:30:05 -0500 Subject: [PATCH] fiddling with licenses.json file pathing --- hooks/post_gen_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 90f9f7fba..70b127a38 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -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