Consider VirtualBoxManager() a singleton, you need to create only once.
So smth like
g_mgr=None
def getMgr():
global g_mgr
if g_mgr is None:
g_mgr = VirtualBoxManager(None, None)
return g_mgr
will do. You don't usually need to uninitialize it, although del g_mgr
would do unint.
Nikolay
24.04.2011 2:26, Alexey Eromenko пишет:
Is there a way to un-initialize VirtualBoxManager() in python ?
I really don't know how-to solve this problem in GNS3 now.
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev