diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-08-05 12:28:13 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-08-05 12:28:13 +0000 |
commit | d76069e946b4e89c828c96340677e40f583080c9 (patch) | |
tree | 7816687bce201f7eb0d90eead118858917d9b078 /avahi-utils/avahi-publish-address.in | |
parent | aafd726e4467dbb9151845904952e93fd2d79c98 (diff) |
* 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
Diffstat (limited to 'avahi-utils/avahi-publish-address.in')
-rwxr-xr-x | avahi-utils/avahi-publish-address.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/avahi-utils/avahi-publish-address.in b/avahi-utils/avahi-publish-address.in index 1942a69..2806049 100755 --- a/avahi-utils/avahi-publish-address.in +++ b/avahi-utils/avahi-publish-address.in @@ -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 |