mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-26 21:36:30 +08:00
Make sure we mark version as legacy when needed
This commit is contained in:
parent
6804e40897
commit
b5caaae74d
1 changed files with 2 additions and 1 deletions
|
|
@ -18,12 +18,13 @@ import psutil
|
||||||
from ofunctions.platform import python_arch, get_os_identifier
|
from ofunctions.platform import python_arch, get_os_identifier
|
||||||
from npbackup.configuration import IS_PRIV_BUILD
|
from npbackup.configuration import IS_PRIV_BUILD
|
||||||
from npbackup.core.nuitka_helper import IS_COMPILED
|
from npbackup.core.nuitka_helper import IS_COMPILED
|
||||||
|
from npbackup.path_helper import IS_LEGACY
|
||||||
|
|
||||||
try:
|
try:
|
||||||
CURRENT_USER = psutil.Process().username()
|
CURRENT_USER = psutil.Process().username()
|
||||||
except Exception:
|
except Exception:
|
||||||
CURRENT_USER = "unknown"
|
CURRENT_USER = "unknown"
|
||||||
version_string = f"{__intname__} v{__version__}-{'priv' if IS_PRIV_BUILD else 'pub'}-{sys.version_info[0]}.{sys.version_info[1]}-{python_arch()} {__build__} - {__copyright__} running as {CURRENT_USER}"
|
version_string = f"{__intname__} v{__version__}-{'priv' if IS_PRIV_BUILD else 'pub'}-{sys.version_info[0]}.{sys.version_info[1]}-{python_arch()}{'-legacy' if IS_LEGACY else ''} {__build__} - {__copyright__} running as {CURRENT_USER}"
|
||||||
version_dict = {
|
version_dict = {
|
||||||
"name": __intname__,
|
"name": __intname__,
|
||||||
"version": __version__,
|
"version": __version__,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue