From f8a5067813cebc633360a91c6b231311a95e99a6 Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Sat, 10 Sep 2016 13:36:22 +0200
Subject: [PATCH] [refactoring2016] Updated the annotations function

---
 bob/bio/base/database/database.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bob/bio/base/database/database.py b/bob/bio/base/database/database.py
index 2190b137..7393ee4d 100644
--- a/bob/bio/base/database/database.py
+++ b/bob/bio/base/database/database.py
@@ -278,7 +278,7 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.Database)):
         """
         if self.annotation_directory:
             try:
-                from .annotations import read_annotation_file
+                from bob.db.base.annotations import read_annotation_file
                 annotation_path = os.path.join(self.annotation_directory, file.path + self.annotation_extension)
                 return read_annotation_file(annotation_path, self.annotation_type)
             except ImportError as e:
-- 
GitLab