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
Pipeline #6516 passed with stages
in 28 minutes and 43 seconds
...@@ -194,9 +194,18 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.Database)): ...@@ -194,9 +194,18 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.Database)):
if self.original_directory in replacements: if self.original_directory in replacements:
self.original_directory = replacements[self.original_directory] self.original_directory = replacements[self.original_directory]
self._db.original_directory = self.original_directory
except AttributeError:
try: try:
if self.annotation_directory in replacements: if self.annotation_directory in replacements:
self.annotation_directory = replacements[self.annotation_directory] self.annotation_directory = replacements[self.annotation_directory]
self._db.annotation_directory = self.annotation_directory
except AttributeError:
except AttributeError: except AttributeError:
pass pass
Supports Markdown
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