BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
Source.version Namespace Reference

Functions

bool running_as_exe ()
 Check if we are currently running as an executable or directly in Python.

Variables

Optional GIT_SHORT_SHA = None
bool PRERELEASE_BUILD = False
int VERSION_BUILD = 0
int VERSION_MAJOR = 1
int VERSION_MINOR = 2
int VERSION_PATCH = 0

Detailed Description


Function Documentation

◆ running_as_exe()

bool running_as_exe ( )

Check if we are currently running as an executable or directly in Python.

Returns
[True|False] running as an EXE

Definition at line 36 of file version.py.

36def running_as_exe() -> bool:
37 """!
38 @brief Check if we are currently running as an executable or directly in Python
39 @return [True|False] running as an EXE
40 """
41 # PyInstaller creates a temp folder and stores path in _MEIPASS
42 return bool(hasattr(sys, "_MEIPASS"))
43
44

Variable Documentation

◆ GIT_SHORT_SHA

GIT_SHORT_SHA = None

Definition at line 45 of file version.py.

◆ PRERELEASE_BUILD

bool PRERELEASE_BUILD = False

Definition at line 27 of file version.py.

◆ VERSION_BUILD

int VERSION_BUILD = 0

Definition at line 15 of file version.py.

◆ VERSION_MAJOR

int VERSION_MAJOR = 1

Definition at line 12 of file version.py.

◆ VERSION_MINOR

int VERSION_MINOR = 2

Definition at line 13 of file version.py.

◆ VERSION_PATCH

int VERSION_PATCH = 0

Definition at line 14 of file version.py.