From 926c957fc04435bf2253a5748e5acec53a18ee86 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 9 Aug 2015 13:00:07 +0200 Subject: [PATCH] Task: Do not use relative import when importing backends dynamically --- tasklib/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5