Skip to content

Commit

Permalink
fix no libs error
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFrangenberg committed Oct 21, 2023
1 parent 39b5686 commit 1e5fa53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Expand Up @@ -19,6 +19,8 @@ jobs:
pip install sphinx sphinx_book_theme myst_parser PySide2
- name: Sphinx build
env:
PRISM_NO_LIBS: "1"
run: |
sphinx-apidoc --no-toc --module-first -o doc/autodoc Prism/Scripts
sphinx-build doc _build -b dirhtml
Expand Down
2 changes: 1 addition & 1 deletion Prism/Scripts/PrismCore.py
Expand Up @@ -63,7 +63,7 @@
if not prismLibs:
prismLibs = prismRoot

if not os.path.exists(os.path.join(prismLibs, "PythonLibs")):
if not os.path.exists(os.path.join(prismLibs, "PythonLibs")) and os.getenv("PRISM_NO_LIBS") != "1":
raise Exception("Prism: Couldn't find libraries. Set \"PRISM_LIBS\" to fix this.")

scriptPath = os.path.join(prismRoot, "Scripts")
Expand Down

0 comments on commit 1e5fa53

Please sign in to comment.