Commit 31d905b0 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'refactoring_2016' into 'master'

replace the original_directory path in the low-level db too

See merge request !57
parents b193d5df bf0ef461
Pipeline #6519 passed with stages
in 17 minutes and 37 seconds
......@@ -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
......
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