On Wed, 7 Jan 2026 at 21:32, Tom Geelen <[email protected]> wrote:
>      def launch(self, launch_cmd, get_ip = True, qemuparams = None, 
> extra_bootparams = None, env = None):
> -        # use logfile to determine the recipe-sysroot-native path and
> -        # then add in the site-packages path components and add that
> -        # to the python sys.path so the qmp module can be found.
> -        python_path = os.path.dirname(os.path.dirname(self.logfile))
> -        python_path += "/recipe-sysroot-native/usr/lib/qemu-python"
> +        # Use PKG_CONFIG_SYSROOT_DIR from env as a starting point for 
> finding qmp module
> +        python_path = env.get("PKG_CONFIG_SYSROOT_DIR", "")
> +        python_path += "/../recipe-sysroot-native/usr/lib/qemu-python"

Thanks, I'm okay with this. It's not perfect, but it's short and very
unlikely to break.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229033): 
https://lists.openembedded.org/g/openembedded-core/message/229033
Mute This Topic: https://lists.openembedded.org/mt/117141415/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to