From: John Levon Subject: Re: Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py work with modules in /usr/lib/python. Date: Fri, 10 Nov 2006 17:44:21 +0000 Message-ID: <20061110174421.GD30635@totally.trollied.org> References: <20061110165132.GB4988@rhun.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20061110165132.GB4988@rhun.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Muli Ben-Yehuda Cc: atse@xensource.com, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Nov 10, 2006 at 06:51:32PM +0200, Muli Ben-Yehuda wrote: > > [XENAPI] Make xapi.py work with modules in /usr/lib/python. > > > > Also Add host_set_name command. > > > > Signed-off-by: Alastair Tse > > --- > > tools/python/scripts/xapi.py | 18 +++++++++++++++++- > > 1 files changed, 17 insertions(+), 1 deletion(-) > > > > diff -r 5a4517468f4f -r 272cd2dc7cdf tools/python/scripts/xapi.py > > --- a/tools/python/scripts/xapi.py Fri Nov 10 11:01:15 2006 +0000 > > +++ b/tools/python/scripts/xapi.py Fri Nov 10 12:44:47 2006 +0000 > > @@ -16,11 +16,15 @@ > > # Copyright (C) 2006 XenSource Ltd. > > #============================================================================ > > > > +import sys > > +sys.path.append('/usr/lib/python') > > + > > Hmm, what's the intention behind this change? won't it break horribly > if the Xen tools are actually installed elsewhere but there's an old > version in /usr/lib/python? This seems dubious to me too. This seems like a problematic python installation that needs this change, and troublesome for other installations as Muli points out... regards john