Add a new cachedir param
parent
a70184923b
commit
46bffbe700
|
@ -92,6 +92,12 @@ def main():
|
||||||
help = "A JSON file matching player tags, characters and " \
|
help = "A JSON file matching player tags, characters and " \
|
||||||
"preferred skins",
|
"preferred skins",
|
||||||
)
|
)
|
||||||
|
top8_parser.add_argument(
|
||||||
|
"--cachedir", "-CD",
|
||||||
|
type = pathlib.Path,
|
||||||
|
default = pathlib.Path(APPDIRS.user_cache_dir),
|
||||||
|
help = "A directory to use for temporary files",
|
||||||
|
)
|
||||||
top8_parser.add_argument(
|
top8_parser.add_argument(
|
||||||
"--templatesdir", "-TD",
|
"--templatesdir", "-TD",
|
||||||
type = pathlib.Path,
|
type = pathlib.Path,
|
||||||
|
@ -303,7 +309,7 @@ def main():
|
||||||
context,
|
context,
|
||||||
args.outfile,
|
args.outfile,
|
||||||
log = log,
|
log = log,
|
||||||
cachedir = pathlib.Path(APPDIRS.user_cache_dir),
|
cachedir = args.cachedir,
|
||||||
)
|
)
|
||||||
|
|
||||||
if rv is None:
|
if rv is None:
|
||||||
|
|
Loading…
Reference in New Issue