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__':