mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix missig history file in output director
This commit is contained in:
parent
6982e6a469
commit
9ee83380e6
@ -416,7 +416,11 @@ def get_completer(opt:Args, models=[])->Completer:
|
|||||||
readline.parse_and_bind('set skip-completed-text on')
|
readline.parse_and_bind('set skip-completed-text on')
|
||||||
readline.parse_and_bind('set show-all-if-ambiguous on')
|
readline.parse_and_bind('set show-all-if-ambiguous on')
|
||||||
|
|
||||||
histfile = os.path.join(os.path.expanduser(opt.outdir), '.invoke_history')
|
outdir = os.path.expanduser(opt.outdir)
|
||||||
|
if os.path.isabs(outdir):
|
||||||
|
histfile = os.path.join(outdir,'.invoke_history')
|
||||||
|
else:
|
||||||
|
histfile = os.path.join(Globals.root, outdir, '.invoke_history')
|
||||||
try:
|
try:
|
||||||
readline.read_history_file(histfile)
|
readline.read_history_file(histfile)
|
||||||
readline.set_history_length(1000)
|
readline.set_history_length(1000)
|
||||||
|
Loading…
Reference in New Issue
Block a user