Dear kb_python team,
I believe that kb ref ignores the --tmp argument, i.e., the user is actually unable to select a custom temporary directory.
Reason: The relevant code in main.py is
temp_dir = args.tmp or os.path.join(
args.o, TEMP_DIR
) if 'o' in args else TEMP_DIR
Since -o is only available for kb count, the if statement always evaluates to False in kb ref, and the value of the else clause (TEMP_DIR) is used.
Solution: I think it will suffice if you add the following parentheses to change operator precedence:
temp_dir = args.tmp or (os.path.join(
args.o, TEMP_DIR
) if 'o' in args else TEMP_DIR)
cheers,
Wolfgang
Dear kb_python team,
I believe that
kb refignores the--tmpargument, i.e., the user is actually unable to select a custom temporary directory.Reason: The relevant code in
main.pyisSince
-ois only available forkb count, the if statement always evaluates toFalseinkb ref, and the value of the else clause (TEMP_DIR) is used.Solution: I think it will suffice if you add the following parentheses to change operator precedence:
cheers,
Wolfgang