Skip to content

Commit

Permalink
use relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
searene committed May 26, 2022
1 parent 5937855 commit 4c092fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion word_fellow/domain/export/ExportService.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import shutil

from word_fellow.infrastructure import WordFellowDB
from ...infrastructure import WordFellowDB


class ExportService:
Expand Down
3 changes: 1 addition & 2 deletions word_fellow/domain/export/ImportService.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
import shutil

from word_fellow.domain.utils import FileUtils
from word_fellow.infrastructure import WordFellowDB
from ...infrastructure import WordFellowDB


class ImportService:
Expand Down
2 changes: 1 addition & 1 deletion word_fellow/ui/dialog/settings/SettingsWindow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PyQt5.QtWidgets import QVBoxLayout, QTabWidget, QWidget

from word_fellow.ui.dialog.settings.backup.ExportImportTab import ExportImportTab
from ....ui.dialog.settings.backup.ExportImportTab import ExportImportTab
from ....domain.backup.BackupService import BackupService
from ....domain.reset.ResetService import ResetService
from ....domain.settings.SettingsService import SettingsService
Expand Down
12 changes: 6 additions & 6 deletions word_fellow/ui/dialog/settings/backup/ExportImportTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from PyQt5.QtWidgets import QWidget, QGroupBox, QLineEdit, QPushButton, QHBoxLayout, QVBoxLayout, QFileDialog, \
QMessageBox

from word_fellow.domain.export.ExportService import ExportService
from word_fellow.domain.export.ImportService import ImportService
from word_fellow.infrastructure import WordFellowDB
from word_fellow.ui.common.ClickableLineEdit import ClickableLineEdit
from word_fellow.ui.util import MsgUtils
from word_fellow.ui.util.DatabaseUtils import get_test_word_fellow_db
from .....domain.export.ExportService import ExportService
from .....domain.export.ImportService import ImportService
from .....infrastructure import WordFellowDB
from .....ui.common.ClickableLineEdit import ClickableLineEdit
from .....ui.util import MsgUtils
from .....ui.util.DatabaseUtils import get_test_word_fellow_db


class ExportImportTab(QWidget):
Expand Down

0 comments on commit 4c092fc

Please sign in to comment.