2********************************************************************************
4@brief Version and general information
5********************************************************************************
9from typing
import Optional
17__title__ =
"BonPrinter"
18__description__ =
"Thermal Printer tool"
19__author__ =
"Timo Unger"
20__owner__ =
"timounger"
21__repo__ =
"BonPrinterHome"
22__copyright__ = f
"Copyright © 2022-2025 {__author__}"
23__license__ =
"GNU General Public License"
24__home__ = f
"https://{__owner__}.github.io/{__repo__}"
27 PRERELEASE_BUILD =
False
28 __version__ = f
"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_PATCH}"
30 PRERELEASE_BUILD =
True
31 __version__ = f
"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_PATCH}.{VERSION_BUILD}"
38 @brief Check if we are currently running as an executable or directly in Python
39 @return [True|False] running as an EXE
42 return bool(hasattr(sys,
"_MEIPASS"))
45GIT_SHORT_SHA: Optional[str] =
None
49 from Source.Util.git_version
import GIT_SHORT_SHA
bool running_as_exe()
Check if we are currently running as an executable or directly in Python.