xsm: Fix __import__() usage on Python 2.4 and earlier.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-09-04 11:55:48 +01:00
1 parent a8c72fbc90
commit 1df7998ba6
1 file changed
+3 -2
+3 -2
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.