Skip to content

Commit

Permalink
continue with _IS_MINGW flag
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Dec 28, 2024
1 parent 53d3787 commit 15e3464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def __dir__() -> list[str]:

# Use for test mocking and to make mypy happy
_PLATFORM = sys.platform
_IS_MINGW = sysconfig.get_platform().startswith("mingw")


# Problematic environment variables that are stripped from all commands inside
Expand Down Expand Up @@ -632,7 +633,7 @@ def _resolved_interpreter(self) -> str:
@property
def bin_paths(self) -> list[str]:
"""Returns the location of the virtualenv's bin folder."""
if _PLATFORM.startswith("win"):
if _PLATFORM.startswith("win") and not _IS_MINGW:
return [os.path.join(self.location, "Scripts")]
return [os.path.join(self.location, "bin")]

Expand Down

0 comments on commit 15e3464

Please sign in to comment.