Make sure to use right encoding for initial UTF-8 path.
This commit is contained in:
		@ -8,8 +8,8 @@ import json
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class TreeWalker:
 | 
					class TreeWalker:
 | 
				
			||||||
	def __init__(self, album_path, cache_path):
 | 
						def __init__(self, album_path, cache_path):
 | 
				
			||||||
		self.album_path = os.path.abspath(album_path)
 | 
							self.album_path = os.path.abspath(album_path).decode(sys.getfilesystemencoding())
 | 
				
			||||||
		self.cache_path = os.path.abspath(cache_path)
 | 
							self.cache_path = os.path.abspath(cache_path).decode(sys.getfilesystemencoding())
 | 
				
			||||||
		set_cache_path_base(self.album_path)
 | 
							set_cache_path_base(self.album_path)
 | 
				
			||||||
		self.all_albums = list()
 | 
							self.all_albums = list()
 | 
				
			||||||
		self.all_photos = list()
 | 
							self.all_photos = list()
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user