Skip to content
Snippets Groups Projects
Commit bf0ef461 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

replace the original_directory path in the low-level db too

parent b193d5df
No related branches found
No related tags found
1 merge request!57replace the original_directory path in the low-level db too
Pipeline #
......@@ -194,9 +194,18 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.Database)):
if self.original_directory in replacements:
self.original_directory = replacements[self.original_directory]
try:
self._db.original_directory = self.original_directory
except AttributeError:
pass
try:
if self.annotation_directory in replacements:
self.annotation_directory = replacements[self.annotation_directory]
try:
self._db.annotation_directory = self.annotation_directory
except AttributeError:
pass
except AttributeError:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment