]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-publish-service.in
* Show some messages when pygtk or twisted is missing for the execution of the python...
[catta] / avahi-utils / avahi-publish-service.in
index de259574f0eedbe2a66d4e9e19eeff8c54811d91..89c1566195dd875bf527fce7c014042039209656 100755 (executable)
 # 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