Make inner package imports relative

This commit is contained in:
Patrick Jentsch
2020-03-27 12:06:11 +01:00
parent 3bbe45d015
commit 4294c2854b
29 changed files with 37 additions and 149 deletions

View File

@@ -2,4 +2,4 @@ from flask import Blueprint
jobs = Blueprint('jobs', __name__)
from . import views
from . import views # noqa

View File

@@ -1,4 +1,4 @@
from app.models import Job
from ..models import Job
def delete_job_(app, job_id):

View File

@@ -1,10 +1,10 @@
from app.models import Job, JobInput, JobResult
from flask import (abort, current_app, flash, redirect, render_template,
send_from_directory, url_for)
from flask_login import current_user, login_required
from threading import Thread
from . import jobs
from .background_functions import delete_job_
from ..models import Job, JobInput, JobResult
import os