From: Bastian Blank Date: Sat, 5 Jul 2014 09:47:01 +0000 (+0200) Subject: pygrub: Set sys.path X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=41b561cf2803c57488e1f79f5e19f7700b5a1a71;p=xen.git pygrub: Set sys.path We install libfsimage in a non-standard path for Reasons. (See debian/rules.) This patch was originally part of `tools-pygrub-prefix.diff' (eg commit 51657319be54) and included changes to the Makefile to change the installation arrangements (we do that part in the rules now since that is a lot less prone to conflicts when we update) and to shared library rpath (which is now done in a separate patch). (Commit message rewritten by Ian Jackson.) Signed-off-by: Ian Jackson squash! pygrub: Set sys.path and rpath --- diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 8d48cf4a85..46b394c029 100755 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -22,6 +22,8 @@ import platform import curses, _curses, curses.textpad, curses.ascii import getopt +sys.path.insert(1, sys.path[0] + '/../lib/python') + import xenfsimage import grub.GrubConf import grub.LiloConf