fix(paths): normalize relative paths to posix (#239)
Co-authored-by: danielfrey63 <daniel.frey@sbb.ch> Co-authored-by: Andy <119136210+AndyMik90@users.noreply.github.com>
This commit is contained in:
@@ -180,8 +180,8 @@ class EvolutionStorage:
|
||||
try:
|
||||
# Resolve both paths to handle symlinks (e.g., /var -> /private/var on macOS)
|
||||
resolved_path = path.resolve()
|
||||
return str(resolved_path.relative_to(self.project_dir))
|
||||
return resolved_path.relative_to(self.project_dir).as_posix()
|
||||
except ValueError:
|
||||
# Path is not under project_dir, return as-is
|
||||
return str(path)
|
||||
return str(path)
|
||||
return path.as_posix()
|
||||
return path.as_posix()
|
||||
|
||||
@@ -221,7 +221,7 @@ class ServiceOrchestrator:
|
||||
self._services.append(
|
||||
ServiceConfig(
|
||||
name=item.name,
|
||||
path=str(item.relative_to(self.project_dir)),
|
||||
path=item.relative_to(self.project_dir).as_posix(),
|
||||
type="local",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user