mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix "unrecognized arguments: --yes" bug on unattended upgrade
This commit is contained in:
parent
03594c949a
commit
83d3f2347e
@ -7,7 +7,7 @@ import warnings
|
|||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
from typing import List, Dict, Callable, Union, Set
|
from typing import List, Dict, Callable, Union, Set, Optional
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from diffusers import DiffusionPipeline
|
from diffusers import DiffusionPipeline
|
||||||
@ -400,7 +400,7 @@ class ModelInstall(object):
|
|||||||
attributes.update(dict(config=str(legacy_conf)))
|
attributes.update(dict(config=str(legacy_conf)))
|
||||||
return attributes
|
return attributes
|
||||||
|
|
||||||
def relative_to_root(self, path: Path, root: None) -> Path:
|
def relative_to_root(self, path: Path, root: Optional[Path] = None) -> Path:
|
||||||
root = root or self.config.root_path
|
root = root or self.config.root_path
|
||||||
if path.is_relative_to(root):
|
if path.is_relative_to(root):
|
||||||
return path.relative_to(root)
|
return path.relative_to(root)
|
||||||
|
@ -650,7 +650,7 @@ def process_and_execute(
|
|||||||
):
|
):
|
||||||
# need to reinitialize config in subprocess
|
# need to reinitialize config in subprocess
|
||||||
config = InvokeAIAppConfig.get_config()
|
config = InvokeAIAppConfig.get_config()
|
||||||
config.parse_args()
|
config.parse_args(['--root',opt.root])
|
||||||
|
|
||||||
# set up so that stderr is sent to conn_out
|
# set up so that stderr is sent to conn_out
|
||||||
if conn_out:
|
if conn_out:
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = "3.0.1post1"
|
__version__ = "3.0.1post2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user