Skip to content
Snippets Groups Projects
Commit 9312f570 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Fix typo; Returns paths as strings (not unicode objects)

parent aee8bb10
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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