Commit 2422dbe4 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

move the _db initialization before calling super

parent 0bbaf455
Pipeline #14346 passed with stages
in 9 minutes and 2 seconds
......@@ -59,6 +59,11 @@ class YoutubeBioDatabase(ZTBioDatabase):
annotation_extension='.labeled_faces.txt',
**kwargs
):
from bob.db.youtube.query import Database as LowLevelDatabase
self._db = LowLevelDatabase(original_directory,
original_extension,
annotation_extension)
# call base class constructors to open a session to the database
super(YoutubeBioDatabase, self).__init__(
name='youtube',
......@@ -67,11 +72,6 @@ class YoutubeBioDatabase(ZTBioDatabase):
annotation_extension=annotation_extension,
**kwargs)
from bob.db.youtube.query import Database as LowLevelDatabase
self._db = LowLevelDatabase(original_directory,
original_extension,
annotation_extension)
@property
def original_directory(self):
return self._db.original_directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment