From: Tomas Babej Date: Sun, 9 Aug 2015 11:00:07 +0000 (+0200) Subject: Task: Do not use relative import when importing backends dynamically X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/926c957fc04435bf2253a5748e5acec53a18ee86?ds=sidebyside;hp=-c Task: Do not use relative import when importing backends dynamically --- 926c957fc04435bf2253a5748e5acec53a18ee86 diff --git a/tasklib/task.py b/tasklib/task.py index c821fcc..8145e2e 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -225,7 +225,7 @@ class Task(TaskResource): # Create the TaskWarrior instance if none passed if backend is None: - backends = importlib.import_module('.backends') + backends = importlib.import_module('tasklib.backends') hook_parent_dir = os.path.dirname(os.path.dirname(sys.argv[0])) backend = backends.TaskWarrior(data_location=hook_parent_dir)