[kupfer] virtualbox: Undo the sys.modules code
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] virtualbox: Undo the sys.modules code
- Date: Mon, 7 Mar 2011 16:21:46 +0000 (UTC)
commit 9b0e7ddf3837bfbdc607b8d56023697cd7f57294
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Mar 7 17:20:24 2011 +0100
virtualbox: Undo the sys.modules code
kupfer/plugin/virtualbox/__init__.py | 7 -------
kupfer/plugin/virtualbox/vboxapi4_support.py | 4 +---
kupfer/plugin/virtualbox/vboxapi_support.py | 4 +---
3 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/kupfer/plugin/virtualbox/__init__.py b/kupfer/plugin/virtualbox/__init__.py
index a2c695c..95d00e1 100644
--- a/kupfer/plugin/virtualbox/__init__.py
+++ b/kupfer/plugin/virtualbox/__init__.py
@@ -7,8 +7,6 @@ __description__ = _("Control VirtualBox Virtual Machines. "
__version__ = "0.3"
__author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
-import sys
-
from kupfer.objects import Leaf, Action, Source
from kupfer import pretty
from kupfer import plugin_support
@@ -64,12 +62,7 @@ class _VBoxSupportProxy:
def unload_module(self):
if not self.VBOX:
return
- # remove module
self.VBOX.unload()
- for module_name, module in sys.modules.iteritems():
- if module == self.VBOX:
- sys.modules.pop(module_name)
- break
self.VBOX = None
diff --git a/kupfer/plugin/virtualbox/vboxapi4_support.py b/kupfer/plugin/virtualbox/vboxapi4_support.py
index 29e4ce4..953ae26 100644
--- a/kupfer/plugin/virtualbox/vboxapi4_support.py
+++ b/kupfer/plugin/virtualbox/vboxapi4_support.py
@@ -8,8 +8,6 @@ Only (?) Sun VirtualBox (no OSE).
__author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
__version__ = "2011-03-06"
-import sys
-
import vboxapi
from kupfer import pretty
@@ -156,4 +154,4 @@ def get_machines():
def unload():
- sys.modules.pop('vboxapi')
+ pass
diff --git a/kupfer/plugin/virtualbox/vboxapi_support.py b/kupfer/plugin/virtualbox/vboxapi_support.py
index fce39f7..52ca956 100644
--- a/kupfer/plugin/virtualbox/vboxapi_support.py
+++ b/kupfer/plugin/virtualbox/vboxapi_support.py
@@ -9,8 +9,6 @@ __author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
__version__ = "2011-03-06"
-import sys
-
from kupfer import pretty
import vboxapi
@@ -163,4 +161,4 @@ def get_machines():
def unload():
- sys.modules.pop('vboxapi')
+ pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]