Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use platform.system() instead of os.name to detect whether to use mono #345

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

samuelgruetter
Copy link
Collaborator

In some environments with cygwin (see #318), os.name returned "posix", which caused mono to be used on Windows.
platform.system() returns

  • "Windows" in my cmd, git bash, and cygwin shell
  • "Linux" on the Ubuntu Travis
  • "Darwin" on Mac as tested by Prath

So the most reliable check seems to be platform.system() != "Windows"

In some environments with cygwin (see dafny-lang#318),
os.name returned "posix", which caused mono to be used on Windows.
platform.system() returns
- "Windows" on in my cmd, git bash, and cygwin shell
- "Linux" on the Ubuntu Travis
- "Darwin" on Mac as tested by Prath
So the most reliable check seems to be `platform.system() != "Windows"`
@RustanLeino RustanLeino merged commit 78d166a into dafny-lang:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants