mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: black
This commit is contained in:
parent
5a6cefb0ea
commit
8469d3e95a
@ -116,7 +116,11 @@ class Config:
|
|||||||
)
|
)
|
||||||
if database_path.endswith(".db") and os.path.isabs(database_path) and os.path.exists(database_path):
|
if database_path.endswith(".db") and os.path.isabs(database_path) and os.path.exists(database_path):
|
||||||
break
|
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 = ""
|
default = ""
|
||||||
while True:
|
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):
|
if outputs_path.endswith("images") and os.path.isabs(outputs_path) and os.path.exists(outputs_path):
|
||||||
break
|
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.database_path = database_path
|
||||||
self.outputs_path = outputs_path
|
self.outputs_path = outputs_path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user