print error message if tkinter is not available

This commit is contained in:
Alexandre Fayolle 2007-07-04 14:06:50 +02:00
parent 47fc73c56f
commit 7b1b274407

View File

@ -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')