Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed windows version parsing in Camera that errored on versions like 8.1#3158

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Starbuck5 merged 2 commits intopygame:mainfromMatiiss:main
Apr 30, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Added string parsing to avoid raising a ValueError on Windows version…
…s that have a "." in the name (e.g. Windows 8.1), now it converts only the integer before the first ".".
  • Loading branch information
Matiiss committedApr 29, 2022
commita1a4e4d658a5a3a4b484c3e6a6d62a9784c9e418
2 changes: 1 addition & 1 deletionsrc_py/camera.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -125,7 +125,7 @@ def _setup_backend(backend):
def get_backends():
possible_backends = []

if sys.platform == "win32" and int(platform.win32_ver()[0]) >= 8:
if sys.platform == "win32" and int(platform.win32_ver()[0].split('.')[0]) >= 8:
possible_backends.append("_camera (MSMF)")

if "linux" in sys.platform:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp