forked frominvoke-ai/InvokeAI
- Notifications
You must be signed in to change notification settings - Fork0
Commitc559bf3
authored
Add a sanity check to root directory finding algorithm (invoke-ai#2772)
Root directory finding algorithm is:2) use --root argument2) use INVOKEAI_ROOT environment variable3) use VIRTUAL_ENV environment variable4) use ~/invokeaiSince developers are liable to put virtual environments in theirfavorite places, not necessarily in the invokeai root directory, this PRadds a sanity check that looks for the existence of`VIRTUAL_ENV/invokeai.init`, and moves on to (4) if not found.1 file changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 22 | + | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
0 commit comments
Comments
(0)