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 to check if it is on windows #2198

Merged
merged 2 commits into from Mar 3, 2022
Merged

use platform.system to check if it is on windows #2198

merged 2 commits into from Mar 3, 2022

Conversation

PanQL
Copy link
Contributor

@PanQL PanQL commented Mar 1, 2022

the code hasattr(platform, "win32_ver") will also be True on other os rather than Windows, this pr replace it by platform.system().

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I verified you are correct about this, my macOS computer on Python 3.10 displays the wrong behaviour.

I've added a CHANGELOG & will now merge.

@PanQL
Copy link
Contributor Author

PanQL commented Mar 3, 2022

@davidhewitt Hi, It seems that the CI has been failed due to network reason. And I didn't find where to rerun the CI. Would you mind to merge this pr manually? Thanks~

@davidhewitt
Copy link
Member

As long as all the 3.10 tests pass I think auto merge will succeed. I'll rerun if needed.

@davidhewitt davidhewitt merged commit 6fda258 into PyO3:main Mar 3, 2022
@PanQL PanQL deleted the fix-interpreter-script branch March 3, 2022 09:17
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