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-changelog

[Xen-changelog] Move the logic to find the Xen Python scripts above the

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Move the logic to find the Xen Python scripts above the import statements.
From: Xen staging patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 08 May 2006 13:58:11 +0000
Delivery-date: Mon, 08 May 2006 07:03:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 491f3f48704e32e695b787541bd4e64ada3f8df9
# Parent  0afdf20b3efae5b7858f8378f8171159e891b068
Move the logic to find the Xen Python scripts above the import statements.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/xm-test/lib/XmTestLib/__init__.py |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff -r 0afdf20b3efa -r 491f3f48704e tools/xm-test/lib/XmTestLib/__init__.py
--- a/tools/xm-test/lib/XmTestLib/__init__.py   Fri May 05 18:36:26 2006 +0100
+++ b/tools/xm-test/lib/XmTestLib/__init__.py   Sat May 06 15:42:12 2006 +0100
@@ -3,13 +3,8 @@
 # Author: Dan Smith <danms@xxxxxxxxxx>
 #
 
-from Console import *
-from Test import *
-from Xm import *
-from XenDomain import *
-from config import *
-from XenDevice import *
-from NetConfig import *
+import os.path
+import sys
 
 # Use the auxbin module in Xend to determine the correct Python path.  We
 # take the first installed instance of auxbin that we find, and then run it
@@ -28,6 +23,14 @@ for p in ['python%s' % sys.version[:3], 
             sys.path.append(libpath)
             break
 
+from Console import *
+from Test import *
+from Xm import *
+from XenDomain import *
+from config import *
+from XenDevice import *
+from NetConfig import *
+
 # Give this test a clean slate
 destroyAllDomUs()
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Move the logic to find the Xen Python scripts above the import statements., Xen staging patchbot-unstable <=