diff --git a/src/cpl_cli/source_creator/console_builder.py b/src/cpl_cli/source_creator/console_builder.py index e0958e28..5ac7baf6 100644 --- a/src/cpl_cli/source_creator/console_builder.py +++ b/src/cpl_cli/source_creator/console_builder.py @@ -132,7 +132,7 @@ class ConsoleBuilder: for template in templates: divider = '' - if not template.path.endswith('/'): + if template.path != '' and not template.path.endswith('/'): divider = '/' Console.spinner( diff --git a/src/cpl_cli/source_creator/library_builder.py b/src/cpl_cli/source_creator/library_builder.py index 1c1ce63b..08e1e660 100644 --- a/src/cpl_cli/source_creator/library_builder.py +++ b/src/cpl_cli/source_creator/library_builder.py @@ -132,7 +132,7 @@ class LibraryBuilder: for template in templates: divider = '' - if not template.path.endswith('/'): + if template.path != '' and not template.path.endswith('/'): divider = '/' Console.spinner(