commit | 3b8f60b7003f9a4b364425f1789c9947b998b520 | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Sat Jan 13 23:13:54 2007 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Sat Jan 13 23:13:54 2007 +0000 |
tree | 1de544e844e830d6896b137113a5904e819c3e39 | |
parent | a50e6233f52bd6a00d07463e1a9dde51b68b4d9b [diff] [blame] |
Use defaults if sys.executable isn't set (e.g. on Jython). This change allows running PyBench under Jython.
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 @@ 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: