]> git.phdru.name Git - xsetbg.git/blobdiff - rescan_fs.py
Fix(py3): Fix filesystem encoding
[xsetbg.git] / rescan_fs.py
index 346f92b28f387c3434731ec9d0e19e4949955aa2..9688de941cbb4831d35947261f03b238783800ea 100755 (executable)
@@ -52,7 +52,7 @@ NULL = open(os.devnull, 'w')
 
 def is_image(full_path):
     # Run `identify` from ImageMagic; convert retcode to bool
-    return not subprocess.call(['identify', full_path],
+    return not subprocess.call(['identify', full_path.encode(fs_encoding)],
                                stdout=NULL, stderr=subprocess.STDOUT)