mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix finding the wheel when running from outside the installer directory
in case of calling python script instead of shell
This commit is contained in:
@@ -284,7 +284,7 @@ class InvokeAiInstance:
|
||||
if FF_USE_LOCAL_WHEEL:
|
||||
# if no wheel, try to do a source install before giving up
|
||||
try:
|
||||
src = str(next(Path.cwd().glob("InvokeAI-*.whl")))
|
||||
src = str(next(Path(__file__).parent.glob("InvokeAI-*.whl")))
|
||||
except StopIteration:
|
||||
try:
|
||||
src = Path(__file__).parents[1].expanduser().resolve()
|
||||
|
||||
Reference in New Issue
Block a user