mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 23:24:16 +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
|
# get terminal width
|
||||||
# src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window
|
# src: http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window
|
||||||
try:
|
try:
|
||||||
cols = int(subprocess.check_call(shlex.split('tput cols')))
|
cols = int(subprocess.check_output(shlex.split('tput cols')))
|
||||||
rows = int(subprocess.check_call(shlex.split('tput lines')))
|
rows = int(subprocess.check_output(shlex.split('tput lines')))
|
||||||
return (cols, rows)
|
return (cols, rows)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user