From 8469d3e95a7c5533508094ff1fcfa20ab1bcd22d Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 7 Aug 2023 10:05:52 +1000 Subject: [PATCH] chore: black --- invokeai/frontend/install/import_images.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/install/import_images.py b/invokeai/frontend/install/import_images.py index 71bef34f26..befef58744 100644 --- a/invokeai/frontend/install/import_images.py +++ b/invokeai/frontend/install/import_images.py @@ -116,7 +116,11 @@ class Config: ) if database_path.endswith(".db") and os.path.isabs(database_path) and os.path.exists(database_path): break - default = database_path + path_delimiter if Path(database_path).is_dir() and not database_path.endswith(('\\','/')) else database_path + default = ( + database_path + path_delimiter + if Path(database_path).is_dir() and not database_path.endswith(("\\", "/")) + else database_path + ) default = "" while True: @@ -130,7 +134,11 @@ class Config: if outputs_path.endswith("images") and os.path.isabs(outputs_path) and os.path.exists(outputs_path): break - default = outputs_path + path_delimiter if Path(outputs_path).is_dir() and not database_path.endswith(('\\','/')) else outputs_path + default = ( + outputs_path + path_delimiter + if Path(outputs_path).is_dir() and not database_path.endswith(("\\", "/")) + else outputs_path + ) self.database_path = database_path self.outputs_path = outputs_path