diff options
| author | rejbasket <39080670+rejbasket@users.noreply.github.com> | 2024-07-20 09:20:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 09:20:10 +0200 |
| commit | 9c537f33b9eb4d015316a7867a9e6d1eda6cd70c (patch) | |
| tree | b642c94f5a3c12082dc6c725aac99ec47e25b68a /lib/exceptions.py | |
| parent | 67b628b5e337d6d28045fe50261096fa9554f495 (diff) | |
shapely arm fix (#3094)
Diffstat (limited to 'lib/exceptions.py')
| -rw-r--r-- | lib/exceptions.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/exceptions.py b/lib/exceptions.py index 8bef185f..c79c771e 100644 --- a/lib/exceptions.py +++ b/lib/exceptions.py @@ -20,8 +20,11 @@ def get_os_version(): os_ver = "Windows " + platform.release() + " version: " + platform.version() if sys.platform == "darwin": # macOS command line progam provides accurate info than python functions - mac_v = subprocess.run(["sw_vers"], capture_output=True, text=True) - os_ver = str(mac_v.stdout.strip()) + mac_v1 = subprocess.run(["sw_vers"], capture_output=True, text=True) + mac_v1 = str(mac_v1.stdout.strip()) + mac_v2 = subprocess.run(["uname", "-m"], capture_output=True, text=True) + mac_v2 = str(mac_v2.stdout.strip()) + os_ver = mac_v1 + "\nCPU:\t\t\t\t" + mac_v2 if sys.platform == "linux": # Getting linux version method used here is for systemd and nonsystemd linux. try: |
