mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xsm: Fix __import__() usage on Python 2.4 and earlier.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
a8c72fbc90
commit
1df7998ba6
1 file changed
+3
-2
@@ -7,10 +7,11 @@ from xsm_core import xsm_init
|
||||
xoptions = XendOptions.instance()
|
||||
xsm_module_name = xoptions.get_xsm_module_name()
|
||||
|
||||
xsconstants.XS_POLICY_USE = eval("xsconstants.XS_POLICY_"+string.upper(xsm_module_name))
|
||||
xsconstants.XS_POLICY_USE = eval("xsconstants.XS_POLICY_" +
|
||||
string.upper(xsm_module_name))
|
||||
|
||||
xsm_module_path = "xen.util.xsm." + xsm_module_name + "." + xsm_module_name
|
||||
xsm_module = __import__(xsm_module_path, globals(), locals(), ['*'], -1)
|
||||
xsm_module = __import__(xsm_module_path, globals(), locals(), ['*'])
|
||||
|
||||
xsm_init(xsm_module)
|
||||
|
||||
|
||||