Skip to content

Commit

Permalink
Fix issue pypa#5446 on pypa/pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMenshikov committed Nov 1, 2022
1 parent 09e6009 commit 4ce7c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from pipenv.utils.toml import cleanup_toml, convert_toml_outline_tables
from pipenv.vendor import plette, toml, tomlkit, vistir
from pipenv.vendor.requirementslib.models.utils import get_default_pyproject_backend
from sysconfig import _POSIX_BUILD

try:
# this is only in Python3.8 and later
Expand Down Expand Up @@ -215,7 +216,7 @@ def is_venv_in_project(self) -> bool:
@property
def virtualenv_exists(self) -> bool:
if os.path.exists(self.virtualenv_location):
if os.name == "nt":
if os.name == "nt" and not _POSIX_BUILD:
extra = ["Scripts", "activate.bat"]
else:
extra = ["bin", "activate"]
Expand Down

0 comments on commit 4ce7c3a

Please sign in to comment.