]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
pygrub: Set sys.path
authorBastian Blank <waldi@debian.org>
Sat, 5 Jul 2014 09:47:01 +0000 (11:47 +0200)
committerIan Jackson <ian.jackson@citrix.com>
Thu, 11 Jul 2019 23:05:33 +0000 (00:05 +0100)
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 <ian.jackson@citrix.com>
squash! pygrub: Set sys.path and rpath

tools/pygrub/src/pygrub

index 097787974b5da7658d9f73852174e00955dbe38f..f8d510370aa4ceaa9eb6f60673719eb09673201d 100755 (executable)
@@ -20,6 +20,8 @@ import platform
 import curses, _curses, curses.wrapper, curses.textpad, curses.ascii
 import getopt
 
+sys.path.insert(1, sys.path[0] + '/../lib/python')
+
 import fsimage
 import grub.GrubConf
 import grub.LiloConf