From c91a5d2ce36910e829d6f63516c8bc6fd2c1b063 Mon Sep 17 00:00:00 2001 From: alexzvk Date: Sun, 27 Nov 2022 18:35:21 -0500 Subject: [PATCH] reworked pathing for titles_dict with os.chdir --- hooks/post_gen_project.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 9cd8bc16..fbd61b82 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -9,14 +9,13 @@ TODO: restrict Cookiecutter Django project initialization to Python 3.x environments only """ from __future__ import print_function -import sys -sys.path.insert(0, '../scripts/') -from update_licenses import titles_dict import os import random import shutil import string +os.chdir('../scripts/') +from update_licenses import titles_dict try: # Inspired by