Skip to content

Commit

Permalink
fix: resolve env path in case windows redirects installation path
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer committed Jun 29, 2022
1 parent 9fb40d2 commit 67a6a1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,11 @@ def make(cls, target: Path) -> "VirtualEnvironment":
import venv

builder = venv.EnvBuilder(clear=True, with_pip=True, symlinks=False)
builder.ensure_directories(target)
context = builder.ensure_directories(target)

if WINDOWS and context.env_exe != context.env_exec_cmd:
target = target.resolve()

builder.create(target)
except ImportError:
# fallback to using virtualenv package if venv is not available, eg: ubuntu
Expand Down

0 comments on commit 67a6a1f

Please sign in to comment.