Commit 242b1a4e authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

pamhyr: Put debug info as logger debug handler.

Showing with 5 additions and 4 deletions
+5 -4
......@@ -86,11 +86,11 @@ def legal_info():
def debug_info():
py_version = sys.version.split("\n")[0]
logger.info(f"python: {py_version}")
logger.debug(f"python: {py_version}")
info = QLibraryInfo
logger.info(f"{info.location(QLibraryInfo.PrefixPath)}")
logger.info(f"{info.location(QLibraryInfo.LibraryExecutablesPath)}")
logger.debug(f"Qt PrefixPath: {info.location(QLibraryInfo.PrefixPath)}")
logger.debug(f"Qt LibExecPath: {info.location(QLibraryInfo.LibraryExecutablesPath)}")
def setup_lang(app, conf:Config):
"Return QTranslator configured for current language"
......
......@@ -62,6 +62,8 @@ def gui(app:QApplication, conf:Config):
application = ApplicationWindow(conf=conf)
application.show()
debug_info()
return app.exec_()
def main():
......@@ -72,7 +74,6 @@ def main():
app.installTranslator(tr)
legal_info()
debug_info()
if len(sys.argv) > 1:
# Run a script
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment