mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-05 21:55:51 -05:00
fix: resolve env path in case windows redirects installation path
This commit is contained in:
parent
af5e82544f
commit
915d307694
1 changed files with 9 additions and 1 deletions
|
@ -297,7 +297,15 @@ class 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 hasattr(context, "env_exec_cmd")
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue