mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-11 23:45:29 +08:00
Add an info message when no tcl/tk support exists
This commit is contained in:
parent
47f22d0def
commit
f35bba49a3
1 changed files with 6 additions and 0 deletions
|
@ -266,6 +266,12 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
|
||||
if args.gui_status:
|
||||
logger.info("Can run GUI: {}, errors={}".format(not _NO_GUI, _NO_GUI_ERROR))
|
||||
# Don't bother to talk about package manager when compiled with Nuitka
|
||||
is_nuitka = "__compiled__" in globals()
|
||||
if _NO_GUI and not is_nuitka:
|
||||
logger.info(
|
||||
'You need tcl/tk 8.6+ and python-tkinter installed for GUI to work. Please use your package manager (example "yum install python-tkinter" or "apt install python3-tk") to install missing dependencies.'
|
||||
)
|
||||
sys.exit(0)
|
||||
|
||||
if args.debug or os.environ.get("_DEBUG", "False").capitalize() == "True":
|
||||
|
|
Loading…
Add table
Reference in a new issue