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

Checking which operating system is used can also be done with libraries instead of string comparison: #92

Open
mpvanderschelling opened this issue Dec 11, 2023 · 0 comments

Comments

@mpvanderschelling
Copy link

Problem

Checking which operating system is used can also be done with libraries instead of string comparison:

Possible solution

from sys import platform
if platform == "linux" or platform == "linux2":
    # linux
elif platform == "darwin":
    # OS X
elif platform == "win32":
    # Windows...
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

No branches or pull requests

1 participant