From b017993bc6f01d71eca66441217a5f3c236500d7 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 13 Jul 2018 10:33:47 -0600 Subject: Fixing for real --- hooks/pre_gen_project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index 85c171b..93f277e 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -1,3 +1,5 @@ +project_name = '{{ cookiecutter.project_name }}' + if '-' in project_name: print('ERROR: Project shortname cannot contain dashes, please use underscores') sys.exit(1) -- cgit v1.2.3