Skip to content

Commit

Permalink
revert code sync
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto512 authored and Psycojoker committed Jan 31, 2021
1 parent 6a54ee6 commit 3d98739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prosopopee/prosopopee.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def ratio(self):
+ " -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0"
)
command_list = command.split()
command_list.append(str(target))
# target is Type path.Path, encodes to bytes, decodes to str, which we can append to the
# list disgusting, I know. But it works
command_list.append(target.encode().decode())
out = subprocess.check_output(command_list)
width, height = out.decode("utf-8").split(",")
return float(width) / int(height)
Expand Down

0 comments on commit 3d98739

Please sign in to comment.