From 9a7b02a7cf7bf7734a338dc1fa4e181e636a61e1 Mon Sep 17 00:00:00 2001 From: jjgomera Date: Sat, 22 Sep 2018 21:11:14 +0200 Subject: [PATCH] Fix relative path for documention building #7 --- docs/generateMEOSrst.py | 15 +++++++++++++++ docs/generateReferences.py | 17 ++++++++++++++++- requirements.readthedocs.txt | 6 +++--- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/docs/generateMEOSrst.py b/docs/generateMEOSrst.py index c2fff729..83d97b99 100644 --- a/docs/generateMEOSrst.py +++ b/docs/generateMEOSrst.py @@ -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 diff --git a/docs/generateReferences.py b/docs/generateReferences.py index b3c89e0c..a03af599 100644 --- a/docs/generateReferences.py +++ b/docs/generateReferences.py @@ -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 diff --git a/requirements.readthedocs.txt b/requirements.readthedocs.txt index 04129ad2..1405fe9b 100644 --- a/requirements.readthedocs.txt +++ b/requirements.readthedocs.txt @@ -1,3 +1,3 @@ -lib/adimensional -./equipment/ -./tools/ +../lib/ +../equipment/ +../tools/