mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Add support to search for a suitable version of python.
The command python has been removed from upstream python and python2 and python3 is now used. This patch wraps the commands in a shell script that locates a suitable python to run. Updates #3537
This commit is contained in:
@@ -69,7 +69,15 @@ class script:
|
||||
self.lc = 0
|
||||
|
||||
def append(self, text):
|
||||
is_str = False
|
||||
if type(text) is str:
|
||||
is_str = True
|
||||
try:
|
||||
if type(text) is unicode:
|
||||
is_str = True
|
||||
except:
|
||||
pass
|
||||
if is_str:
|
||||
text = text.splitlines()
|
||||
if not log.quiet:
|
||||
i = 0
|
||||
|
Reference in New Issue
Block a user