From a3a2c45832d710b569fc088a2924b1f22ac353c9 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 17 Nov 2021 13:42:41 +0100 Subject: [PATCH] Fix imports --- src/fime/config.py | 3 +-- src/fime/import_task.py | 2 +- src/fime/main.py | 12 ++++++------ src/fime/report.py | 4 ++-- src/fime/task_completer.py | 2 +- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/fime/config.py b/src/fime/config.py index fd55eeb..193751c 100644 --- a/src/fime/config.py +++ b/src/fime/config.py @@ -1,10 +1,9 @@ -import os from configparser import ConfigParser from pathlib import Path from PySide2 import QtCore -from exceptions import FimeException +from fime.exceptions import FimeException def dequotify(string): diff --git a/src/fime/import_task.py b/src/fime/import_task.py index 3994dbd..44b8f02 100644 --- a/src/fime/import_task.py +++ b/src/fime/import_task.py @@ -1,6 +1,6 @@ from PySide2 import QtGui, QtWidgets -from task_completer import TaskCompleter +from fime.task_completer import TaskCompleter class ImportTask(QtWidgets.QDialog): diff --git a/src/fime/main.py b/src/fime/main.py index df64b09..937cac8 100755 --- a/src/fime/main.py +++ b/src/fime/main.py @@ -7,12 +7,12 @@ from functools import partial from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtWidgets import QMessageBox -from data import Tasks, Log, Data -from exceptions import FimeException -from import_task import ImportTask -from task_edit import TaskEdit -from report import Report -from util import get_screen_height +from fime.data import Tasks, Log, Data +from fime.exceptions import FimeException +from fime.import_task import ImportTask +from fime.task_edit import TaskEdit +from fime.report import Report +from fime.util import get_screen_height class App: diff --git a/src/fime/report.py b/src/fime/report.py index c07393c..e5bb8d5 100644 --- a/src/fime/report.py +++ b/src/fime/report.py @@ -4,8 +4,8 @@ from datetime import datetime from PySide2.QtWidgets import QHeaderView -from data import Tasks -from util import get_screen_height +from fime.data import Tasks +from fime.util import get_screen_height class Report(QtWidgets.QDialog): diff --git a/src/fime/task_completer.py b/src/fime/task_completer.py index fec86d1..b720ba2 100644 --- a/src/fime/task_completer.py +++ b/src/fime/task_completer.py @@ -10,7 +10,7 @@ from PySide2.QtCore import QTimer from PySide2.QtWidgets import QCompleter from requests_futures.sessions import FuturesSession -from config import Config +from fime.config import Config class TaskCompleter(QCompleter):