comparison src/plugins/plugin_adhoc_dbus.py @ 1542:94901070478e

plugins: added new MissingModule exceptions to plugins using third party modules
author Goffi <goffi@goffi.org>
date Wed, 30 Sep 2015 17:25:09 +0200
parents 9a4e95c62380
children d17772b0fe22
comparison
equal deleted inserted replaced
1541:685fad1c18e4 1542:94901070478e
22 from sat.core.log import getLogger 22 from sat.core.log import getLogger
23 log = getLogger(__name__) 23 log = getLogger(__name__)
24 from sat.core import exceptions 24 from sat.core import exceptions
25 from twisted.internet import defer 25 from twisted.internet import defer
26 from wokkel import data_form 26 from wokkel import data_form
27 from lxml import etree 27 try:
28 from os import path 28 from lxml import etree
29 except ImportError:
30 raise exceptions.MissingModule(u"Missing module lxml, please download/install it from http://lxml.de/")
31 import os.path
29 import uuid 32 import uuid
30 import dbus 33 import dbus
31 from dbus.mainloop.glib import DBusGMainLoop 34 from dbus.mainloop.glib import DBusGMainLoop
32 DBusGMainLoop(set_as_default=True) 35 DBusGMainLoop(set_as_default=True)
33 36