From af88f77222ee64f1f202e9f54025f24e56426b41 Mon Sep 17 00:00:00 2001 From: Gijs Date: Thu, 9 Sep 2021 17:04:45 +0200 Subject: [PATCH] Reset relative import for now --- scripts/__init__.py | 0 scripts/app.py | 6 +++--- scripts/pagedjs.py | 2 +- scripts/paseo.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 scripts/__init__.py 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