From 3b8f60b7003f9a4b364425f1789c9947b998b520 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Sat, 13 Jan 2007 23:13:54 +0000 Subject: [PATCH] Use defaults if sys.executable isn't set (e.g. on Jython). This change allows running PyBench under Jython. --- Lib/platform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py index d6c0c17f6b..86b4b1097c 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: -- 2.50.1