aboutsummaryrefslogtreecommitdiffstats
path: root/scanner
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-06-22 17:54:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-06-22 17:54:53 +0200
commitba72d7c8b79b69fde376baa45f2f932934f83942 (patch)
treeaa01822f33f12a1c961801c30b669d9f58a00691 /scanner
parentHigher quality thumbs. (diff)
downloadPhotoFloat-ba72d7c8b79b69fde376baa45f2f932934f83942.tar.xz
PhotoFloat-ba72d7c8b79b69fde376baa45f2f932934f83942.zip
Make sure to use right encoding for initial UTF-8 path.
Diffstat (limited to 'scanner')
-rw-r--r--scanner/TreeWalker.py4
1 files 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()