diff --git a/src/cpl_cli/source_creator/library_builder.py b/src/cpl_cli/source_creator/library_builder.py index 6e6d9a4b..475bcfaf 100644 --- a/src/cpl_cli/source_creator/library_builder.py +++ b/src/cpl_cli/source_creator/library_builder.py @@ -122,11 +122,12 @@ class LibraryBuilder: project_file_path = f'{project_name_snake}/{project_name}.json' if workspace is None: - src_path = f'{proj_name}/src/{project_name_snake}' + src_path = f'src/{project_name_snake}' workspace_file_path = f'{proj_name}/cpl-workspace.json' - project_file_path = f'{src_path}/{project_name}.json' + project_file_rel_path = f'{src_path}/{project_name}.json' + project_file_path = f'{proj_name}/{src_path}/{project_name}.json' cls._create_workspace(workspace_file_path, project_name, { - project_name: project_file_path + project_name: project_file_rel_path }) else: