From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: prefix and python site-packages Date: Wed, 23 Apr 2014 10:21:31 +0200 Message-ID: <20140423082131.GA20022@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.campbell@citrix.com, ian.jackson@eu.citrix.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org configure --prefix=/some/where puts pygrub and xen/lowlevel/xc.so below /some/where. But pygrub fails because it can not find the python site-packages. Is there a clean way to automate something like this? diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 7759b1a..4134082 100644 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -14,6 +14,7 @@ # import os, sys, string, struct, tempfile, re, traceback +sys.path.insert(0, "/some/where/lib64/python2.6/site-packages") import errno import copy import logging Olaf