]> git.phdru.name Git - xsetbg.git/blobdiff - print-filename.py
Fix(DB): Fix column encoding
[xsetbg.git] / print-filename.py
index d5413976761bfc625c54d780de2e8654b6d2c8b6..e9f217b75b46920f4561b72ce29c0ac6dfcd0cf8 100755 (executable)
@@ -58,4 +58,4 @@ index, output_encoding = get_args()
 filename = xsetbg_db.select('last_shown IS NOT NULL',
                             orderBy='-last_shown')[index].full_name
 
-print(filename.encode(output_encoding))
+sys.stdout.buffer.write(filename.encode(output_encoding) + b'\n')