ok it can show off it's version i guess

This commit is contained in:
Arris Kathery 2023-12-10 19:48:49 -08:00
parent 17f0d47d59
commit 39b190cf75
Signed by: elburg
GPG key ID: 565F8F14CB163871
5 changed files with 198 additions and 1 deletions

View file

21
themezed/__main__.py Normal file
View file

@ -0,0 +1,21 @@
# import qt stuff
import PyQt6.QtCore
def print_ver():
import platform
from importlib.metadata import version, PackageNotFoundError
tzv = ""
try:
tzv = version("themezed")
except PackageNotFoundError:
import tomllib
with open("./pyproject.toml","rb") as f:
tzv = tomllib.load(f)["tool"]["poetry"]["version"]
print("Theme-ZED - Version {}\n\nRunning on Python ({}) {}, using\n\tPyQt\t{}".format(
tzv,
platform.python_implementation(),platform.python_version(),
PyQt6.QtCore.PYQT_VERSION_STR
))
print_ver()