diff --git a/scripts/__init__.py b/scripts/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/app.py b/scripts/app.py index 3fd64da..1b5320c 100644 --- a/scripts/app.py +++ b/scripts/app.py @@ -2,12 +2,12 @@ from flask import Flask, render_template, request, Response # from weasyprint import HTML -from .pagedjs import make_pdf -from .settings import DEBUG, BASEURL +from pagedjs import make_pdf +from settings import DEBUG, BASEURL # Spacy tries to import CUDA, do not break when it fails try: - from .paseo import crear_camino + from paseo import crear_camino except ModuleNotFoundError: pass diff --git a/scripts/pagedjs.py b/scripts/pagedjs.py index 125c15a..674de54 100644 --- a/scripts/pagedjs.py +++ b/scripts/pagedjs.py @@ -1,7 +1,7 @@ import subprocess import tempfile import os.path -from .settings import PAGEDJS_BINARY_PATH +from settings import PAGEDJS_BINARY_PATH basepath = os.path.abspath(os.path.dirname(__file__)) diff --git a/scripts/paseo.py b/scripts/paseo.py index 1ee733c..e247c76 100644 --- a/scripts/paseo.py +++ b/scripts/paseo.py @@ -1,5 +1,5 @@ -from .parse_trees import load_trees_from_json -from .medialab import crear_base_datos, paso +from parse_trees import load_trees_from_json +from medialab import crear_base_datos, paso from random import shuffle, random # creating Markov Chain in text & trees