mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 06:04:08 +00:00
...
This commit is contained in:
parent
201ac973e3
commit
2058682d1f
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ def show(outfile, width, height, fmt, transmit_mode):
|
|||
set_cursor(cmd, width, height)
|
||||
if detect_support.has_files:
|
||||
cmd['t'] = transmit_mode
|
||||
write_gr_cmd(cmd, standard_b64encode(outfile.encode(sys.getfilesystemencoding() or 'utf-8')))
|
||||
write_gr_cmd(cmd, standard_b64encode(os.path.abspath(outfile).encode(sys.getfilesystemencoding() or 'utf-8')))
|
||||
else:
|
||||
with open(outfile, 'rb') as f:
|
||||
data = f.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue