From ba72d7c8b79b69fde376baa45f2f932934f83942 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 22 Jun 2012 17:54:53 +0200 Subject: Make sure to use right encoding for initial UTF-8 path. --- scanner/TreeWalker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner/TreeWalker.py b/scanner/TreeWalker.py index 4855d20..c2dbd53 100644 --- a/scanner/TreeWalker.py +++ b/scanner/TreeWalker.py @@ -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() -- cgit v1.2.3-59-g8ed1b