diff options
author | Filip Brzozowski <63065775+fbrzoz@users.noreply.github.com> | 2020-06-17 15:39:50 +0300 |
---|---|---|
committer | DeeJayhX <ruined1@gmail.com> | 2020-12-28 12:41:58 +0300 |
commit | d7cf87af204298458ca6ab6f92186c87ee32645d (patch) | |
tree | 9748915bdefa09f8b1248c57191581bfc854276c | |
parent | 13dab2e035b901dea39225bec30498a5ced66e95 (diff) |
Fix architecture misidentification
-rw-r--r-- | dwt_util.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dwt_util.py b/dwt_util.py index 62bde2b..ee2d725 100644 --- a/dwt_util.py +++ b/dwt_util.py @@ -65,9 +65,8 @@ class CalledProcessError(Exception): def is_64bit(): if os.name == 'nt': - output = subprocess.check_output(['wmic', 'os', 'get', 'OSArchitecture']) - os_arch = output.split()[1] - return True if os_arch == '64-bit' else False + os_arch = os.environ["PROCESSOR_ARCHITEW6432"] + return True if os_arch == 'AMD64' else False else: logger.critical("This was only meant to be run on Windows-based system. Specifically, Windows 10.") os._exit(0) |