summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2007-01-13 23:13:54 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2007-01-13 23:13:54 (GMT)
commit3b8f60b7003f9a4b364425f1789c9947b998b520 (patch)
tree1de544e844e830d6896b137113a5904e819c3e39 /Lib/platform.py
parenta50e6233f52bd6a00d07463e1a9dde51b68b4d9b (diff)
downloadcpython-3b8f60b7003f9a4b364425f1789c9947b998b520.zip
cpython-3b8f60b7003f9a4b364425f1789c9947b998b520.tar.gz
cpython-3b8f60b7003f9a4b364425f1789c9947b998b520.tar.bz2
Use defaults if sys.executable isn't set (e.g. on Jython).
This change allows running PyBench under Jython.
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index d6c0c17..86b4b10 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -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: