Skip to content

Commit

Permalink
Merge branch 'mr/ramonat/detect-windows-11' into 'master'
Browse files Browse the repository at this point in the history
Set Windows version to 11 for build number >= 22000

See merge request it/e3-core!97
  • Loading branch information
enzbang committed Jan 23, 2025
2 parents f791962 + b95661e commit 488e453
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/e3/os/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,12 @@ def get_os_version() -> tuple[None, None, None] | tuple[float, int, bool]:
else:
version = "2022"
else:
version = "10"
full_version = "10.0"
if build_number > 22000:
version = "11"
full_version = "11.0"
else:
version = "10"
full_version = "10.0"

if full_version is None:
full_version = version
Expand Down

0 comments on commit 488e453

Please sign in to comment.