mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Move the logic to find the Xen Python scripts above the import statements.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
30907c5593
commit
4697d093c7
1 file changed
+10
-7
@@ -3,13 +3,8 @@
|
||||
# Author: Dan Smith <danms@us.ibm.com>
|
||||
#
|
||||
|
||||
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], 'python']:
|
||||
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()
|
||||
|
||||
|
||||