Skip to content

Commit

Permalink
Fix; windows builds now add an '_internal' directory prefix due to up…
Browse files Browse the repository at this point in the history
…stream design changes in pyinstaller.
  • Loading branch information
Josh Sixsmith authored and Josh Sixsmith committed Aug 14, 2024
1 parent ff8a392 commit d3c50ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hyo2/qax/app/widgets/qax/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


REL_DOCS_PATH = 'docs/_build/html/'
ALT_DOCS_PATH = '_internal/' + REL_DOCS_PATH # for both the Windows exe and dist versions

class ManualWindow(QMainWindow):

Expand Down Expand Up @@ -95,9 +96,12 @@ def __init__(self):

def docs_url(self):
abs_docs_oath = os.path.abspath(REL_DOCS_PATH + manual_links.INDEX)
alt_docs_path = os.path.abspath(ALT_DOCS_PATH + manual_links.INDEX)
if (os.path.isfile(abs_docs_oath)):
return QUrl.fromLocalFile(abs_docs_oath)
raise RuntimeError("Docs not found at {}".format(abs_docs_oath))
elif os.path.isfile(alt_docs_path):
return QUrl.fromLocalFile(alt_docs_path)
raise RuntimeError(f"Docs not found at {abs_docs_oath} or {alt_docs_path}")

def load(self):
url = QUrl.fromUserInput(self.address_line_edit.text())
Expand Down

0 comments on commit d3c50ab

Please sign in to comment.