mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue