Fixed relative path handling in add command

This commit is contained in:
Sven Heidemann 2021-04-11 15:42:34 +02:00
parent 6af9328e14
commit c970412a66

View File

@ -96,7 +96,12 @@ class AddService(CommandABC):
Console.error(f'Project reference already exists.') Console.error(f'Project reference already exists.')
return return
build_settings.project_references.append(f'../{target}') if self._workspace is None:
target = f'../{target}'
else:
target = target.replace('src', '..')
build_settings.project_references.append(target)
Console.spinner( Console.spinner(
f'Editing {source}', f'Editing {source}',