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

This change allows running PyBench under Jython.
This commit is contained in:
Marc-André Lemburg 2007-01-13 23:13:54 +00:00
parent a50e6233f5
commit 3b8f60b700
1 changed files with 4 additions and 1 deletions

View File

@ -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: