From d76069e946b4e89c828c96340677e40f583080c9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 5 Aug 2005 12:28:13 +0000 Subject: * Show some messages when pygtk or twisted is missing for the execution of the python scripts git-svn-id: file:///home/lennart/svn/public/avahi/trunk@237 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-utils/avahi-publish-service.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'avahi-utils/avahi-publish-service.in') 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 -- cgit