modularize ui imports

This commit is contained in:
Vladimir Mandic
2023-12-22 08:07:34 -05:00
parent ec0a08c4db
commit 4b74d3ebf9
4 changed files with 127 additions and 115 deletions
+10
View File
@@ -47,6 +47,16 @@ def get_custom_args():
if current != default:
custom[arg] = getattr(args, arg)
installer.log.info(f'Command line args: {sys.argv[1:]} {installer.print_dict(custom)}')
if os.environ.get('SD_ENV_DEBUG', None) is not None:
env = os.environ.copy()
if 'PATH' in env:
del env['PATH']
if 'PS1' in env:
del env['PS1']
installer.log.trace(f'Environment: {installer.print_dict(env)}')
else:
env = [f'{k}={v}' for k, v in os.environ.items() if k.startswith('SD_')]
installer.log.debug(f'Env flags: {env}')
@lru_cache()