mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
Change 'subprocess.check_call' to 'subprocess.check_output' in ''utils.output'
This commit is contained in:
parent
59d2513dee
commit
328ad0cff9
@ -51,8 +51,8 @@ def _get_terminal_size_tput():
|
||||
# get terminal width
|
||||
# src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window
|
||||
try:
|
||||
cols = int(subprocess.check_call(shlex.split('tput cols')))
|
||||
rows = int(subprocess.check_call(shlex.split('tput lines')))
|
||||
cols = int(subprocess.check_output(shlex.split('tput cols')))
|
||||
rows = int(subprocess.check_output(shlex.split('tput lines')))
|
||||
return (cols, rows)
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user