From 7288f07becc85403ccc2976208d5872633f0d722 Mon Sep 17 00:00:00 2001 From: alexzvk Date: Sun, 27 Nov 2022 18:20:39 -0500 Subject: [PATCH] adjusted pathing for importing title dictionary --- hooks/post_gen_project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 6414ec44..9cd8bc16 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -9,7 +9,9 @@ TODO: restrict Cookiecutter Django project initialization to Python 3.x environments only """ from __future__ import print_function -from scripts.update_licenses import titles_dict +import sys +sys.path.insert(0, '../scripts/') +from update_licenses import titles_dict import os import random