Commit 2825d02c authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

doc: Fix path for build version.

Showing with 14 additions and 2 deletions
+14 -2
......@@ -16,7 +16,7 @@
# -*- coding: utf-8 -*-
import os
import os, sys
import logging
import subprocess
......@@ -37,10 +37,18 @@ class DocWindow(PamhyrWindow):
_pamhyr_name = "Doc"
def _path_file(self, filename):
if ".py" in sys.argv[0]:
return os.path.abspath(
os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "doc", filename
)
)
return os.path.abspath(
os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "doc", filename
"..", "..", "..", "..", "doc", filename
)
)
......
......@@ -83,6 +83,10 @@ def license():
logger.info("license: This is free software, and you are welcome to redistribute it")
logger.info("license: under certain conditions.")
py_version = sys.version.split("\n")[0]
logger.info(f"python: {py_version}")
def setup_lang(app, conf:Config):
"Return QTranslator configured for current language"
lang_file = ""
......
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