(installer) run configure_invokeai from within the installer

This commit is contained in:
Eugene Brodsky 2023-01-12 00:56:47 -05:00
parent 802b95b9d9
commit 93129fde32
3 changed files with 4 additions and 4 deletions

View File

@ -210,9 +210,9 @@ class InvokeAiInstance:
Configure the InvokeAI runtime directory
"""
from ldm.invoke.configuration import configure
from ldm.invoke.config import configure_invokeai
configure.main()
configure_invokeai.main()
def update(self):
pass

View File

@ -8,14 +8,14 @@ from installer import Installer
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--destination", type=str, help="Destination path for installation", default="~/invokeai")
parser.add_argument("-r", "--root", type=str, help="Destination path for installation", default="~/invokeai")
args = parser.parse_args()
inst = Installer()
try:
inst.install(path=args.destination)
inst.install(path=args.root)
except KeyboardInterrupt as exc:
print("\n")
print("Ctrl-C pressed. Aborting.")