Skip to content

Commit

Permalink
correct virtualenv bin dir under mingw python
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 4, 2024
1 parent aa09595 commit d33a006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import shutil
import subprocess
import sys
import sysconfig
from pathlib import Path
from socket import gethostbyname
from typing import TYPE_CHECKING, Any, ClassVar
Expand All @@ -50,6 +51,7 @@
]
)
_SYSTEM = platform.system()
_IS_MINGW = sysconfig.get_platform().startswith("mingw")


def find_uv() -> tuple[bool, str]:
Expand Down Expand Up @@ -605,7 +607,7 @@ def _resolved_interpreter(self) -> str:
@property
def bin_paths(self) -> list[str]:
"""Returns the location of the virtualenv's bin folder."""
if _SYSTEM == "Windows":
if _SYSTEM == "Windows" and not _IS_MINGW:
return [os.path.join(self.location, "Scripts")]
return [os.path.join(self.location, "bin")]

Expand Down

0 comments on commit d33a006

Please sign in to comment.