mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 14:35:36 +08:00
Remove double version_string init
This commit is contained in:
parent
fde53b867b
commit
ce0241d273
1 changed files with 3 additions and 4 deletions
|
@ -243,12 +243,14 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
version_string = "{} v{}{} {} - {}".format(
|
||||
version_string = "{} v{}{}{} {} - {} - {}".format(
|
||||
__intname__,
|
||||
__version__,
|
||||
"-PRIV" if configuration.IS_PRIV_BUILD else "",
|
||||
"-P{}".format(sys.version_info[1]),
|
||||
__build__,
|
||||
"GUI disabled" if _NO_GUI else "GUI enabled",
|
||||
__copyright__
|
||||
)
|
||||
if args.version:
|
||||
print(version_string)
|
||||
|
@ -492,9 +494,6 @@ This is free software, and you are welcome to redistribute it under certain cond
|
|||
minimize_current_window()
|
||||
logger.info("Running GUI")
|
||||
try:
|
||||
version_string = "{} v{} {}\n{}".format(
|
||||
__intname__, __version__, __build__, __copyright__
|
||||
)
|
||||
with pidfile.PIDFile(PID_FILE):
|
||||
try:
|
||||
main_gui(config_dict, CONFIG_FILE, version_string)
|
||||
|
|
Loading…
Reference in a new issue