Commit 3b8f60b7 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Use defaults if sys.executable isn't set (e.g. on Jython).

This change allows running PyBench under Jython.
parent a50e6233
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment