WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py wor

To: atse@xxxxxxxxxxxxx
Subject: [Xen-devel] Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py work with modules in /usr/lib/python.
From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Date: Fri, 10 Nov 2006 18:51:32 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 10 Nov 2006 08:51:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E1GiYKg-0005B8-04@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1GiYKg-0005B8-04@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Fri, Nov 10, 2006 at 03:30:17PM +0000, Xen patchbot-unstable wrote:
> # HG changeset patch
> # User Alastair Tse <atse@xxxxxxxxxxxxx>
> # Node ID 272cd2dc7cdfaffdda6ed5dd8b620152e0a9c7d8
> # Parent  5a4517468f4f7341eef9d20d4959187a7f2f2267
> [XENAPI] Make xapi.py work with modules in /usr/lib/python.
> 
> Also Add host_set_name command.
> 
> Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
> ---
>  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?

Cheers,
Muli

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel