X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-utils%2Favahi-publish-address.in;h=2806049fa7c7f899677617977a004f2007a3168a;hb=adfa1d85bce393fa549b72fa1dd650eb3c74f8d8;hp=afa16e9d1f0d67eec9566284720e422a828f439a;hpb=ccdf8185dee9e480b2974d7a6387b12d5b6699cf;p=catta diff --git a/avahi-utils/avahi-publish-address.in b/avahi-utils/avahi-publish-address.in index afa16e9..2806049 100755 --- a/avahi-utils/avahi-publish-address.in +++ b/avahi-utils/avahi-publish-address.in @@ -1,4 +1,4 @@ -#!/usr/bin/env @PYTHON@ +#!@PYTHON@ # -*-python-*- # $Id$ @@ -19,7 +19,13 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -import avahi, dbus, gobject, sys, getopt, string +import sys, getopt, string + +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