From 7268131f576c639ce556d04afa28d674d53f81ed Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 6 Apr 2023 08:14:11 -0400 Subject: [PATCH] change where !replay looks for its infile !fetch puts its output file into the output directory; it may be beneficial to have !replay look in the output directory as well. --- invokeai/frontend/CLI/CLI.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/CLI/CLI.py b/invokeai/frontend/CLI/CLI.py index 22e1bbd49d..cebfe54391 100644 --- a/invokeai/frontend/CLI/CLI.py +++ b/invokeai/frontend/CLI/CLI.py @@ -581,6 +581,7 @@ def do_command(command: str, gen, opt: Args, completer) -> tuple: elif command.startswith("!replay"): file_path = command.replace("!replay", "", 1).strip() + file_path = os.path.join(opt.outdir, file_path) if infile is None and os.path.isfile(file_path): infile = open(file_path, "r", encoding="utf-8") completer.add_history(command)