Skip to content

Commit

Permalink
Fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutsuten committed Jun 3, 2020
1 parent 5df03a5 commit b85b823
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lifedrain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See the LICENCE file in the repository root for full licence text.
"""

from lifedrain.defaults import DEFAULTS
from .defaults import DEFAULTS


class DeckConf:
Expand Down
4 changes: 2 additions & 2 deletions lifedrain/deck_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from anki.hooks import runHook

from lifedrain.defaults import DEFAULTS
from lifedrain.progress_bar import ProgressBar
from .defaults import DEFAULTS
from .progress_bar import ProgressBar


class DeckManager:
Expand Down
2 changes: 1 addition & 1 deletion lifedrain/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See the LICENCE file in the repository root for full licence text.
"""

from lifedrain.defaults import DEFAULTS
from .defaults import DEFAULTS


def must_be_enabled(func):
Expand Down
10 changes: 5 additions & 5 deletions lifedrain/lifedrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
See the LICENCE file in the repository root for full licence text.
"""

from lifedrain.config import DeckConf
from lifedrain.deck_manager import DeckManager
from lifedrain.decorators import must_be_enabled
from lifedrain.defaults import DEFAULTS
from lifedrain.settings import GlobalSettings, DeckSettings
from .config import DeckConf
from .deck_manager import DeckManager
from .decorators import must_be_enabled
from .defaults import DEFAULTS
from .settings import GlobalSettings, DeckSettings


class Lifedrain:
Expand Down
2 changes: 1 addition & 1 deletion lifedrain/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from anki.lang import _
from anki.sched import Scheduler

from lifedrain.lifedrain import Lifedrain
from .lifedrain import Lifedrain


def main():
Expand Down
2 changes: 1 addition & 1 deletion lifedrain/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
See the LICENCE file in the repository root for full licence text.
"""

from lifedrain.defaults import POSITION_OPTIONS, STYLE_OPTIONS, TEXT_FORMAT
from .defaults import POSITION_OPTIONS, STYLE_OPTIONS, TEXT_FORMAT


class ProgressBar:
Expand Down
3 changes: 1 addition & 2 deletions lifedrain/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

from operator import itemgetter

from lifedrain.defaults import (
DEFAULTS, POSITION_OPTIONS, STYLE_OPTIONS, TEXT_FORMAT)
from .defaults import DEFAULTS, POSITION_OPTIONS, STYLE_OPTIONS, TEXT_FORMAT


class Form:
Expand Down

0 comments on commit b85b823

Please sign in to comment.