]> git.meshlink.io Git - catta/blobdiff - avahi-utils/avahi-dump-all.in
* Show some messages when pygtk or twisted is missing for the execution of the python...
[catta] / avahi-utils / avahi-dump-all.in
index c3c56b70f664e95962f30abf8dacaa9c57f983b0..c90e964aa9ff65edf4e9c8de41a157b66ce863ad 100755 (executable)
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 # USA.
 
-import avahi, dbus, gobject, sys
+import sys
+
+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