summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBryan Clark <clarkbw@cvs.gnome.org>2004-08-30 04:23:54 +0000
committerBryan W. Clark <clarkbw@gnome.org>2004-08-30 04:23:54 +0000
commitee1cb1e40011fb394d47fd20d0b225b6a4d88964 (patch)
treed0ce137740e1744e8983ffe33091e94e4a2de7e0 /examples
parentbc7cd6c4089a2c41f6f6a69d6a29ecdb76ce052b (diff)
downloadNetworkManager-ee1cb1e40011fb394d47fd20d0b225b6a4d88964.tar.gz
2004-08-30 Bryan Clark <clarkbw@cvs.gnome.org>
* examples/python/systray/network_tray.py: Added nice message when you try to run without running make first git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@108 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/systray/network_tray.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/python/systray/network_tray.py b/examples/python/systray/network_tray.py
index 2f5043177d..fc49805cc2 100755
--- a/examples/python/systray/network_tray.py
+++ b/examples/python/systray/network_tray.py
@@ -2,8 +2,14 @@
import pygtk; pygtk.require("2.0")
import gtk
import gtk.gdk
-import trayicon
-from NetworkManager import NetworkManager
+
+try:
+ import trayicon
+ from NetworkManager import NetworkManager
+except:
+ print "type 'make' make the necessary modules to run this example"
+ import sys
+ sys.exit(1)
class network_tray: