[FIX] Bug fix for template path ValueError

Add cleaning step to remove ending slash in template path entered from CLI

Change-Id: I1ec8f48918b54b4733658ed7001b6e6462bef7a8
This commit is contained in:
Ryan Schroder 2019-11-18 21:38:25 +00:00
parent f53c51edc1
commit 9d983e4874
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class SiteProcessor(BaseProcessor):
logging_undefined = \
jinja2.make_logging_undefined(LOG, base=jinja2.StrictUndefined)
template_folder_name = os.path.split(template_dir)[1]
template_folder_name = os.path.split(template_dir.rstrip(os.sep))[1]
created_file_list = []
created_dir_list = []