Switch to shutil for getting terminal size
Due to possible permissions issues with automated testing switching to shutil to indirectly call os.get_terminal_size() is best.master
parent
7dd655cece
commit
243e537684
|
@ -1,7 +1,7 @@
|
|||
import os
|
||||
import shutil
|
||||
|
||||
|
||||
def print_clean(msg):
|
||||
terminal_size = os.get_terminal_size()
|
||||
terminal_size = shutil.get_terminal_size()
|
||||
msg_length = len(msg)
|
||||
print("{}{}".format(msg, " " * (int(terminal_size[0]) - msg_length)), end='')
|
||||
|
|
Loading…
Reference in New Issue