mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: Put debug info as logger debug handler.
This commit is contained in:
1 parent
397b5b0cab
commit
242b1a4e50
2 files changed
+5
-4
No files matched your search
+3
-3
@@ -86,11 +86,11 @@ def legal_info():
|
|||||||
|
|
||||||
def debug_info():
|
def debug_info():
|
||||||
py_version = sys.version.split("\n")[0]
|
py_version = sys.version.split("\n")[0]
|
||||||
logger.info(f"python: {py_version}")
|
logger.debug(f"python: {py_version}")
|
||||||
|
|
||||||
info = QLibraryInfo
|
info = QLibraryInfo
|
||||||
logger.info(f"{info.location(QLibraryInfo.PrefixPath)}")
|
logger.debug(f"Qt PrefixPath: {info.location(QLibraryInfo.PrefixPath)}")
|
||||||
logger.info(f"{info.location(QLibraryInfo.LibraryExecutablesPath)}")
|
logger.debug(f"Qt LibExecPath: {info.location(QLibraryInfo.LibraryExecutablesPath)}")
|
||||||
|
|
||||||
def setup_lang(app, conf:Config):
|
def setup_lang(app, conf:Config):
|
||||||
"Return QTranslator configured for current language"
|
"Return QTranslator configured for current language"
|
||||||
|
|||||||
+2
-1
@@ -62,6 +62,8 @@ def gui(app:QApplication, conf:Config):
|
|||||||
application = ApplicationWindow(conf=conf)
|
application = ApplicationWindow(conf=conf)
|
||||||
application.show()
|
application.show()
|
||||||
|
|
||||||
|
debug_info()
|
||||||
|
|
||||||
return app.exec_()
|
return app.exec_()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -72,7 +74,6 @@ def main():
|
|||||||
app.installTranslator(tr)
|
app.installTranslator(tr)
|
||||||
|
|
||||||
legal_info()
|
legal_info()
|
||||||
debug_info()
|
|
||||||
|
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
# Run a script
|
# Run a script
|
||||||
|
|||||||
Reference in new issue
Block a user