ok it can show off it's version i guess
This commit is contained in:
parent
17f0d47d59
commit
39b190cf75
5 changed files with 198 additions and 1 deletions
21
themezed/__main__.py
Normal file
21
themezed/__main__.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue