diff --git a/conda_lock/conda_lock.py b/conda_lock/conda_lock.py index e9a6987de..fc592924e 100644 --- a/conda_lock/conda_lock.py +++ b/conda_lock/conda_lock.py @@ -929,7 +929,9 @@ def run_lock( lock_content = parse_conda_lock_file(lockfile_path) # reconstruct native paths locked_environment_files = [ - pathlib.Path( + pathlib.Path(p) + if pathlib.Path(p).is_absolute + else pathlib.Path( pathlib.PurePosixPath(lockfile_path).parent / pathlib.PurePosixPath(p) )