summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-07-04 14:06:50 +0200
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2007-07-04 14:06:50 +0200
commit263b9941b69f92be23075e9493ff13ba741cede6 (patch)
tree4bbcf9e4d986512bb53504658ac0b6e20ebcc6a6 /bin
parentbf26f37a3fa4a65c25c7ece90df0d40393ab56ed (diff)
downloadpylint-263b9941b69f92be23075e9493ff13ba741cede6.tar.gz
print error message if tkinter is not available
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pylint-gui7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/pylint-gui b/bin/pylint-gui
index 847ef3a..025378f 100755
--- a/bin/pylint-gui
+++ b/bin/pylint-gui
@@ -1,4 +1,7 @@
#!/usr/bin/env python
import sys
-from pylint import gui
-gui.Run(sys.argv[1:])
+try:
+ from pylint import gui
+ gui.Run(sys.argv[1:])
+except ImportError:
+ sys.exit('tkinter is not available')