From: Alastair Tse Subject: Re: Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py work with modules in /usr/lib/python. Date: Fri, 10 Nov 2006 17:57:07 +0000 Message-ID: <1163181427.4710.6.camel@norwich.uk.xensource.com> References: <20061110165132.GB4988@rhun.ibm.com> <20061110174421.GD30635@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061110174421.GD30635@totally.trollied.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: Muli Ben-Yehuda , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, 2006-11-10 at 17:44 +0000, John Levon wrote: > On Fri, Nov 10, 2006 at 06:51:32PM +0200, Muli Ben-Yehuda wrote: > > > +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... xapi.py isn't installed on any system and only exists in the Xend dev tree for me to test the Xen API support in Xend. The default installation root is /usr/lib/python for the vanilla xen python tools. Yes, I agree it is a concern that Xend/Xm puts everything in /usr/lib/python, but that is a whole separate thread. I have a patch locally that fixes this behaviour along with install.sh fixes it, if that is what people are concerned about. Cheers, Alastair