Packaging Updates (#873)

* Make setup-generated script names lower case
* Change how the manual.pdf file is handled
This commit is contained in:
Veronica Berglyd Olsen
2021-08-29 16:27:59 +02:00
committed by GitHub
parent a00d0820cc
commit 4b52f343c1
5 changed files with 40 additions and 88 deletions
+5 -8
View File
@@ -302,6 +302,7 @@ class Config:
# Internationalisation
self.nwLangPath = os.path.join(self.assetPath, "i18n")
logger.debug("Assets: %s", self.assetPath)
logger.verbose("App path: %s", self.appPath)
logger.verbose("Last path: %s", self.lastPath)
@@ -358,14 +359,10 @@ class Config:
self.spellLanguage = "en"
# Look for a PDF version of the manual
lookIn = [
os.path.join(self.assetPath, "help", "manual.pdf"),
os.path.join(self.appRoot, "UserManual.pdf"),
]
for pdfDocs in lookIn:
if os.path.isfile(pdfDocs):
self.pdfDocs = pdfDocs
break
pdfDocs = os.path.join(self.assetPath, "manual.pdf")
if os.path.isfile(pdfDocs):
logger.debug("Found manual: %s", pdfDocs)
self.pdfDocs = pdfDocs
logger.debug("Config initialisation complete")