avoid double import of the same module

This commit is contained in:
Nikos Kouremenos 2005-07-17 23:03:40 +00:00
parent ca1e956b44
commit 009f471368
1 changed files with 2 additions and 1 deletions

View File

@ -824,7 +824,8 @@ class Interface:
parser.write() parser.write()
def enable_dbus(self): def enable_dbus(self):
import remote_control if remote_control not in globals():
import remote_control
self.remote = remote_control.Remote(self) self.remote = remote_control.Remote(self)
def disable_dbus(self): def disable_dbus(self):