mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Root directory finding algorithm is: 2) use --root argument 2) use INVOKEAI_ROOT environment variable 3) use VIRTUAL_ENV environment variable 4) use ~/invokeai Since developer's are liable to put virtual environments in their favorite places, not necessarily in the invokeai root directory, this PR adds a sanity check that looks for the existence of VIRTUAL_ENV/invokeai.init, and moves to (4) if not found.