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