Skip to content

Commit

Permalink
Fixed Windows 10 detection
Browse files Browse the repository at this point in the history
Python's platform library is currently broken and cannot detect Windows 11
  • Loading branch information
JakeMartin-ICL committed Dec 18, 2022
1 parent 655cb4f commit 1d165fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/steamStorageOptimiser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import os
import platform
import sys
from pathlib import Path

Expand All @@ -16,7 +15,7 @@

update_api_threshold = 1024 ** 3
tick = '√' if getattr(
sys, 'frozen', False) and platform.release() == '10' else '✓'
sys, 'frozen', False) and sys.platform == 'win32' and sys.getwindowsversion().build < 22000 else '✓'


def load_config():
Expand Down

0 comments on commit 1d165fe

Please sign in to comment.