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
Anthony Forsberg 2018-03-09 20:24:52 -05:00
parent 7dd655cece
commit 243e537684
2 changed files with 3 additions and 3 deletions

View File

@ -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='')

View File

@ -3,7 +3,7 @@ from codecs import open
from os import path
import sys
appversion = "0.0.8-11"
appversion = "0.0.8-12"
here = path.abspath(path.dirname(__file__))