Make sure to use right encoding for initial UTF-8 path.

master
Jason A. Donenfeld 2012-06-22 17:54:53 +02:00
parent 120b8846b7
commit ba72d7c8b7
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ import json
class TreeWalker:
def __init__(self, album_path, cache_path):
self.album_path = os.path.abspath(album_path)
self.cache_path = os.path.abspath(cache_path)
self.album_path = os.path.abspath(album_path).decode(sys.getfilesystemencoding())
self.cache_path = os.path.abspath(cache_path).decode(sys.getfilesystemencoding())
set_cache_path_base(self.album_path)
self.all_albums = list()
self.all_photos = list()