diff --git a/pyro/ProjectBase.py b/pyro/ProjectBase.py index c3cd2b11..706843f1 100644 --- a/pyro/ProjectBase.py +++ b/pyro/ProjectBase.py @@ -58,7 +58,7 @@ def _get_path(path: str, *, relative_root_path: str, fallback_path: Union[str, l """ if path or startswith(path, (os.curdir, os.pardir)): path = os.path.expanduser(os.path.expandvars(path)) - return path if os.path.isabs(path) else os.path.normpath(os.path.join(relative_root_path, path)) + return os.path.normpath(path) if os.path.isabs(path) else os.path.normpath(os.path.join(relative_root_path, path)) if isinstance(fallback_path, list): return os.path.abspath(os.path.join(*fallback_path)) return fallback_path