Use module-relative imports

This commit is contained in:
Odd Stråbø 2021-10-10 20:38:25 +02:00
commit 53c887d354
53 changed files with 166 additions and 195 deletions

View file

@ -12,11 +12,11 @@ import re
from kodi_six import xbmc, xbmcvfs
from six import text_type
from database import jellyfin_db
from helper import translate, settings, window, dialog
from helper.utils import translate_path
from objects import obj
from helper import LazyLogger
from . import jellyfin_db
from ..helper import translate, settings, window, dialog
from ..helper.utils import translate_path
from ..objects import obj
from ..helper import LazyLogger
#################################################################################################
@ -200,7 +200,7 @@ def reset():
''' Reset both the jellyfin database and the kodi database.
'''
from views import Views
from ..views import Views
views = Views()
if not dialog("yesno", "{jellyfin}", translate(33074)):

View file

@ -2,10 +2,10 @@
from __future__ import division, absolute_import, print_function, unicode_literals
#################################################################################################
from database import queries as QU
from helper import LazyLogger
from . import queries as QU
from ..helper import LazyLogger
from jellyfin.utils import sqlite_namedtuple_factory
from ..jellyfin.utils import sqlite_namedtuple_factory
##################################################################################################