replace deleted get_root()

This commit is contained in:
Lincoln Stein 2023-05-25 22:48:50 -04:00
parent 5659d10778
commit 4d9f55d0f6

View File

@ -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."