Added logic to cpl cli to change cwd only when wanted

This commit is contained in:
2021-04-11 11:12:39 +02:00
parent d51659db3e
commit 284ebe1b11
4 changed files with 26 additions and 17 deletions

View File

@@ -102,7 +102,9 @@ class GenerateService(CommandABC):
rel_path = '/'.join(parts[:-1])
class_name = parts[len(parts) - 1]
if 'src' not in name:
Console.write_line(rel_path)
if 'src' not in rel_path:
rel_path = f'src/{rel_path}'
template = template(class_name, schematic, self._schematics[schematic]["Upper"], rel_path)