From 9312f5703a3a1fd27a3ee6d4c38350317d5544f2 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Sat, 22 Sep 2012 21:21:23 +0200
Subject: [PATCH] Fix typo; Returns paths as strings (not unicode objects)

---
 xbob/db/replay/models.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xbob/db/replay/models.py b/xbob/db/replay/models.py
index 3468e27..fa1fd8e 100644
--- a/xbob/db/replay/models.py
+++ b/xbob/db/replay/models.py
@@ -89,7 +89,7 @@ class File(Base):
     if not directory: directory = ''
     if not extension: extension = ''
 
-    return os.path.join(directory, self.path + extension)
+    return str(os.path.join(directory, self.path + extension))
 
   def videofile(self, directory=None):
     """Returns the path to the database video file for this object
@@ -182,7 +182,7 @@ class File(Base):
     """
 
     path = self.make_path(directory, extension)
-    bob.utils.makedirs_safe(os.path.dirname(path))
+    bob.db.utils.makedirs_safe(os.path.dirname(path))
     bob.io.save(data, path)
 
 # Intermediate mapping from RealAccess's to Protocol's
-- 
GitLab