Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dwt_util.py')
-rw-r--r--dwt_util.py5
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)