diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2007-07-04 14:06:50 +0200 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2007-07-04 14:06:50 +0200 |
commit | 263b9941b69f92be23075e9493ff13ba741cede6 (patch) | |
tree | 4bbcf9e4d986512bb53504658ac0b6e20ebcc6a6 /bin | |
parent | bf26f37a3fa4a65c25c7ece90df0d40393ab56ed (diff) | |
download | pylint-263b9941b69f92be23075e9493ff13ba741cede6.tar.gz |
print error message if tkinter is not available
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pylint-gui | 7 |
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') |