mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
replace deleted get_root()
This commit is contained in:
parent
5659d10778
commit
4d9f55d0f6
@ -28,7 +28,6 @@ from ...backend.config.model_install_backend import (
|
|||||||
Dataset_path,
|
Dataset_path,
|
||||||
default_config_file,
|
default_config_file,
|
||||||
default_dataset,
|
default_dataset,
|
||||||
get_root,
|
|
||||||
install_requested_models,
|
install_requested_models,
|
||||||
recommended_datasets,
|
recommended_datasets,
|
||||||
)
|
)
|
||||||
@ -454,8 +453,8 @@ def main():
|
|||||||
opt = parser.parse_args()
|
opt = parser.parse_args()
|
||||||
|
|
||||||
# setting a global here
|
# setting a global here
|
||||||
config.root = os.path.expanduser(get_root(opt.root) or "")
|
config.root = Path(opt.root or '')
|
||||||
|
|
||||||
if not (config.root_dir / config.conf_path.parent).exists():
|
if not (config.root_dir / config.conf_path.parent).exists():
|
||||||
logger.info(
|
logger.info(
|
||||||
"Your InvokeAI root directory is not set up. Calling invokeai-configure."
|
"Your InvokeAI root directory is not set up. Calling invokeai-configure."
|
||||||
|
Loading…
Reference in New Issue
Block a user