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:
@@ -601,10 +601,15 @@ def load(args, optargs = None, defaults = '%{_sbdir}/defaults.mc', logfile = Tru
|
||||
global host_windows
|
||||
global host_posix
|
||||
|
||||
#
|
||||
# Adjust the args to remove the wrapper.
|
||||
#
|
||||
args = args[1:]
|
||||
|
||||
#
|
||||
# The path to this command.
|
||||
#
|
||||
command_path = path.dirname(args[0])
|
||||
command_path = path.dirname(path.abspath(args[0]))
|
||||
if len(command_path) == 0:
|
||||
command_path = '.'
|
||||
|
||||
|
Reference in New Issue
Block a user