We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1460a82 + f9a4293 commit b921c74Copy full SHA for b921c74
1 file changed
windows_check.py
@@ -20,8 +20,8 @@ def is_windows_11():
20
""" Utility function to check installation date """
21
def get_installation_date():
22
try:
23
- windows_path = "C:\\Windows"
24
- creation_time = os.path.getctime(windows_path)
+ user_folder = os.path.expanduser("~")
+ creation_time = os.path.getctime(user_folder)
25
return datetime.fromtimestamp(creation_time)
26
except Exception as e:
27
return None
0 commit comments