mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
print error message if tkinter is not available
This commit is contained in:
parent
47fc73c56f
commit
7b1b274407
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user