mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(config): use set_root to set root
This commit is contained in:
parent
deffeb9655
commit
3d1f3818cb
@ -424,9 +424,7 @@ def get_model_merger(record_store: ModelRecordServiceBase) -> ModelMerger:
|
||||
def main():
|
||||
args = _parse_args()
|
||||
if args.root_dir:
|
||||
config.parse_args(["--root", str(args.root_dir)])
|
||||
else:
|
||||
config.parse_args([])
|
||||
config.set_root(Path(args.root_dir))
|
||||
|
||||
try:
|
||||
if args.front_end:
|
||||
|
@ -426,7 +426,7 @@ def main() -> None:
|
||||
|
||||
# change root if needed
|
||||
if args.root_dir:
|
||||
config.root = args.root_dir
|
||||
config.set_root(args.root_dir)
|
||||
|
||||
try:
|
||||
if args.front_end:
|
||||
|
Loading…
Reference in New Issue
Block a user