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,6 +824,7 @@ class Interface:
parser.write() parser.write()
def enable_dbus(self): def enable_dbus(self):
if remote_control not in globals():
import remote_control import remote_control
self.remote = remote_control.Remote(self) self.remote = remote_control.Remote(self)