Took out terminal size

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-09-11 20:53:23 +09:00
parent 3f2975f4e0
commit ef0002bf62
1 changed files with 4 additions and 7 deletions

View File

@ -22,7 +22,6 @@ WPCHROOT = "/fusato/config/includes.chroot"
BINARYPTH = "/fusato/config/includes.binary"
BOOTSTRAP = "/fusato/config/includes.bootstrap"
FUSATOCONFIG = "/fusato/config"
term_size = os.get_terminal_size().columns
# Set up the logging format
logger = logging.getLogger()
@ -37,9 +36,7 @@ class ChrootFolders:
the architecture it will, copy folders as needed
"""
def __init__(self,sbase,sarch):
print('=' * term_size.columns)
logger.info("Copy Chroot")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
src_chroot = ('/osrelease/' + self.sbase + self.sarch,
@ -77,9 +74,9 @@ class BinaryFolders:
the architecture it will, copy folders as needed
"""
def __init__(self, sbase, sarch):
print('=' * term_size.columns)
logger.info("Copy Binary")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
src_binary = ('/splash/' + self.sbase + self.sarch + '/boot',
@ -115,9 +112,9 @@ class ArchitectureFiles:
architecture it will, copy files as needed
"""
def __init__(self, sbase, sarch):
print('=' * term_size.columns)
logger.info("Copy Architecture")
print('=' * term_size.columns)
self.sbase = sbase
self.sarch = sarch
calamares_path = '/calamares_settings/'