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

Fix inspect os error #42

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Fix inspect os error #42

merged 1 commit into from
Aug 29, 2024

Conversation

zepc007
Copy link

@zepc007 zepc007 commented Aug 29, 2024

image
My python version is 3.12.4 on windows.
You can see the screenshot, sys.platform is win32 not nt, but os.name is nt.
I don't know what python version you are using, check it out plz.

@dlenski
Copy link
Owner

dlenski commented Aug 29, 2024

Thanks! I'm not sure how this escaped the notice of previous users who've tried running it on Windows. https://github.com/dlenski/python-zxing/issues?q=windows

(I myself have never tried using it on Windows 🙅🏻‍♂️)

@dlenski dlenski merged commit 44dc209 into dlenski:master Aug 29, 2024
13 checks passed
dlenski pushed a commit that referenced this pull request Aug 29, 2024
Should be `if os.name == 'nt'`, and *not* `if sys.platform == 'nt'`.
Helpful explanation at https://stackoverflow.com/a/11674977/20789.

Signed-off-by: Daniel Lenski <[email protected]>
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.

2 participants