Use defaults if sys.executable isn't set (e.g. on Jython).
This change allows running PyBench under Jython.
This commit is contained in:
parent
a50e6233f5
commit
3b8f60b700
|
@ -963,7 +963,10 @@ def architecture(executable=sys.executable,bits='',linkage=''):
|
|||
bits = str(size*8) + 'bit'
|
||||
|
||||
# Get data from the 'file' system command
|
||||
output = _syscmd_file(executable,'')
|
||||
if executable:
|
||||
output = _syscmd_file(executable, '')
|
||||
else:
|
||||
output = ''
|
||||
|
||||
if not output and \
|
||||
executable == sys.executable:
|
||||
|
|
Loading…
Reference in New Issue