Skip to content

Commit

Permalink
Fix relative path for documention building #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgomera committed Sep 22, 2018
1 parent bf59c33 commit 9a7b02a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
15 changes: 15 additions & 0 deletions docs/generateMEOSrst.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@

import os

# Define the pychemqt environment

os.environ["pychemqt"] = "/home/jjgomera/Programacion/pychemqt/"
os.environ["freesteam"] = "False"
os.environ["pybel"] = "False"
os.environ["CoolProp"] = "False"
os.environ["refprop"] = "False"
os.environ["ezodf"] = "False"
os.environ["openpyxl"] = "False"
os.environ["xlwt"] = "False"
os.environ["icu"] = "False"
os.environ["reportlab"] = "False"
os.environ["PyQt5.Qsci"] = "False"


import lib


Expand Down
17 changes: 16 additions & 1 deletion docs/generateReferences.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-

# Generate the *-ref.rst files with list of references
# Define the pychemqt environmentl
import os

os.environ["pychemqt"] = "/home/jjgomera/Programacion/pychemqt/"
os.environ["freesteam"] = "False"
os.environ["pybel"] = "False"
os.environ["CoolProp"] = "False"
os.environ["refprop"] = "False"
os.environ["ezodf"] = "False"
os.environ["openpyxl"] = "False"
os.environ["xlwt"] = "False"
os.environ["icu"] = "False"
os.environ["reportlab"] = "False"
os.environ["PyQt5.Qsci"] = "False"

# Generate the *-ref.rst files with list of references
import lib

all = lib.__all__
for mod in lib.EoS.__all__:
all.append(".".join(mod.__name__.split(".")[1:]))

total = []
for library in all:
if library in ["EoS", "mEoS"]:
continue
Expand Down
6 changes: 3 additions & 3 deletions requirements.readthedocs.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lib/adimensional
./equipment/
./tools/
../lib/
../equipment/
../tools/

0 comments on commit 9a7b02a

Please sign in to comment.