mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
devtool: ide_sdk: Use bitbake's python3 for generated scripts
The generated scripts use the sys.path configuration found inside
bitbake. It can be a different python version than the one used on the
host through the IDE.
For instance, when running the generated script
deploy_target_cmake-example-core2-64 from an eSDK generated on another
machine, I got the following exception:
AssertionError: SRE module mismatch
We need to match the sys.executable to the sys.path.
(From OE-Core rev: 45704319661570b45ef69fddd6b4b4fa22ca80d1)
Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
730bd999d6
commit
8e84fbba72
@@ -750,7 +750,7 @@ class RecipeModified:
|
||||
does not need to start a bitbake server. All information from tinfoil
|
||||
is hard-coded in the generated script.
|
||||
"""
|
||||
cmd_lines = ['#!/usr/bin/env python3']
|
||||
cmd_lines = ['#!%s' % str(sys.executable)]
|
||||
cmd_lines.append('import sys')
|
||||
cmd_lines.append('devtool_sys_path = %s' % str(sys.path))
|
||||
cmd_lines.append('devtool_sys_path.reverse()')
|
||||
|
||||
Reference in New Issue
Block a user