From 94c14139ac778387aa89dbc284eb75cd302b8c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= Date: Fri, 30 Jul 2021 15:24:50 +0200 Subject: [PATCH] Fix system env detection --- poetry/utils/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/utils/env.py b/poetry/utils/env.py index d6875245eb7..b13ec91270c 100644 --- a/poetry/utils/env.py +++ b/poetry/utils/env.py @@ -753,7 +753,7 @@ def create_venv( "" ) - return SystemEnv(Path(sys.prefix)) + return self.get_system_env() io.write_line( "Creating virtualenv {} in {}".format(name, str(venv_path))