From ad9ff14d0f87e60e41512505d078f187e2858a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 21 Mar 2024 23:32:29 +0100 Subject: [PATCH] meson: Revive support for installing to an arbitrary prefix --- scripts/meson.build | 1 + scripts/script.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/scripts/meson.build b/scripts/meson.build index 53bbd40f..c19da8b8 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -18,6 +18,7 @@ scripts = [ common_cdata = configuration_data() common_cdata.set('PYTHON', python.path()) +common_cdata.set('pythondir', python.get_install_dir()) foreach s : scripts cdata = configuration_data() diff --git a/scripts/script.in b/scripts/script.in index 158864f5..434e81fa 100644 --- a/scripts/script.in +++ b/scripts/script.in @@ -1,5 +1,8 @@ #!@PYTHON@ +import sys +sys.path.insert(1, '@pythondir@') + import frida_tools.@module@ if __name__ == '__main__':