installer respects INVOKEAI_ROOT for default root location

This commit is contained in:
Lincoln Stein
2023-07-29 16:16:44 -04:00
parent 9a1cfadd8b
commit 781322a647
2 changed files with 21 additions and 1 deletions

View File

@ -168,7 +168,10 @@ class Installer:
messages.welcome()
self.dest = Path(root).expanduser().resolve() if yes_to_all else messages.dest_path(root)
invokeai_root = os.environ.get('INVOKEAI_ROOT')
default_path = 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
self.venv = self.app_venv()