diff --git a/installer/lib/installer.py b/installer/lib/installer.py index 40cfcedeb2..e0a72b34aa 100644 --- a/installer/lib/installer.py +++ b/installer/lib/installer.py @@ -168,7 +168,7 @@ class Installer: messages.welcome() - default_path = os.environ.get('INVOKEAI_ROOT') or Path(root).expanduser().resolve() + default_path = os.environ.get("INVOKEAI_ROOT") or Path(root).expanduser().resolve() self.dest = default_path if yes_to_all else messages.dest_path(root) # create the venv for the app diff --git a/installer/lib/main.py b/installer/lib/main.py index 4b74f984dc..4f1372652b 100644 --- a/installer/lib/main.py +++ b/installer/lib/main.py @@ -16,7 +16,7 @@ if __name__ == "__main__": dest="root", type=str, help="Destination path for installation", - default=os.environ.get('INVOKEAI_ROOT') or "~/invokeai", + default=os.environ.get("INVOKEAI_ROOT") or "~/invokeai", ) parser.add_argument( "-y", diff --git a/invokeai/frontend/install/model_install.py b/invokeai/frontend/install/model_install.py index 78dd0f88d0..cdb1d165fd 100644 --- a/invokeai/frontend/install/model_install.py +++ b/invokeai/frontend/install/model_install.py @@ -61,6 +61,7 @@ NOPRINT_TRANS_TABLE = {i: None for i in range(0, sys.maxunicode + 1) if not chr( # maximum number of installed models we can display before overflowing vertically MAX_OTHER_MODELS = 72 + def make_printable(s: str) -> str: """Replace non-printable characters in a string""" return s.translate(NOPRINT_TRANS_TABLE) @@ -298,7 +299,7 @@ class addModelsForm(CyclingForm, npyscreen.FormMultiPage): if truncation: widgets.update( - warning_message = self.add_widget_intelligent( + warning_message=self.add_widget_intelligent( npyscreen.FixedText, value=f"Too many models to display (max={MAX_OTHER_MODELS}). Some are not displayed.", editable=False,