mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-20 00:26:49 +08:00
python: Provide support to select a valid python version.
- Update imports after wrapping the code. - Fix python3 issues. - Fix config path issues for in repo and install runs. Closes #3537
This commit is contained in:
@@ -78,6 +78,8 @@ def _output(text = os.linesep, log = None):
|
||||
text = os.linesep
|
||||
if type(text) is list:
|
||||
text = os.linesep.join(text) + os.linesep
|
||||
if isinstance(text, bytes):
|
||||
text = text.decode('utf-8', 'ignore')
|
||||
if log:
|
||||
log.output(text)
|
||||
elif default is not None:
|
||||
@@ -175,6 +177,8 @@ class log:
|
||||
text = text.replace(chr(13), '').splitlines()
|
||||
self._tail(text)
|
||||
out = os.linesep.join(text) + os.linesep
|
||||
if isinstance(out, bytes):
|
||||
out = out.decode('utf-8', 'ignore')
|
||||
self.lock.acquire()
|
||||
try:
|
||||
for f in range(0, len(self.fhs)):
|
||||
|
Reference in New Issue
Block a user