From ed69f5292764d6bb7fbbfe7a76c025d79a373eea Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 25 May 2022 15:11:42 +0200 Subject: [PATCH] Fixed generate service --- src/cpl_cli/command/generate_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpl_cli/command/generate_service.py b/src/cpl_cli/command/generate_service.py index e546218e..dfbcbd93 100644 --- a/src/cpl_cli/command/generate_service.py +++ b/src/cpl_cli/command/generate_service.py @@ -137,7 +137,7 @@ class GenerateService(CommandABC): rel_path = '/'.join(parts[:-1]) class_name = parts[len(parts) - 1] - if 'src' not in rel_path: + if 'src' not in rel_path and not os.path.exists(os.path.join(self._env.working_directory, rel_path)): rel_path = f'src/{rel_path}' template = template(class_name, schematic, self._schematics[schematic]["Upper"], rel_path)