Skip to content

Commit c675cd0

Browse files
committed
* Add code to check if the provided template_location exist/valid.
1 parent fc68a89 commit c675cd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

about_code_tool/genattrib.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ def main(parser, options, args):
182182
parser.print_help()
183183
sys.exit(errno.EEXIST)
184184

185+
if template_location:
186+
if not exists(template_location):
187+
print('The defined template location does not exist.')
188+
parser.print_help()
189+
sys.exit(errno.EINVAL)
190+
185191
if component_subset_path and not exists(component_subset_path):
186192
print('Component Subset path does not exist.')
187193
parser.print_help()

0 commit comments

Comments
 (0)