Skip to content

Commit 7d58822

Browse files
gismo112emilsvennesson
authored andcommitted
Fix x86 architecture detection
Fixes #5
1 parent d53301b commit 7d58822

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'x86_64':
3838
{
3939
'Linux': 'x64',
40-
'Windows': 'ia32',
40+
'Windows': 'x64',
4141
'Darwin': 'x64'
4242
},
4343
'x86':

lib/inputstreamhelper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ def _inputstream_version(self):
118118
def _arch(self):
119119
"""Map together and return the system architecture."""
120120
arch = platform.machine()
121+
if arch == 'AMD64':
122+
arch_bit = platform.architecture()[0]
123+
if arch_bit == '32bit':
124+
arch = 'x86'
125+
elif arch_bit == '64bit':
126+
arch = 'x86_64'
121127
if arch in config.X86_MAP:
122128
return config.X86_MAP[arch]
123129
elif 'armv' in arch:

0 commit comments

Comments
 (0)