summaryrefslogtreecommitdiffstats
path: root/avahi-utils/avahi-publish-service.in
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-utils/avahi-publish-service.in')
-rwxr-xr-xavahi-utils/avahi-publish-service.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/avahi-utils/avahi-publish-service.in b/avahi-utils/avahi-publish-service.in
index de25957..89c1566 100755
--- a/avahi-utils/avahi-publish-service.in
+++ b/avahi-utils/avahi-publish-service.in
@@ -19,7 +19,13 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
-import avahi, dbus, gobject, sys, getopt
+import sys, getopt
+
+try:
+ import avahi, gobject, dbus
+except ImportError:
+ print "Sorry, to use this tool you need to install Avahi, pygtk and python-dbus."
+ sys.exit(1)
try:
import dbus.glib