ported update_se
This commit is contained in:
parent
2da7834c61
commit
560e00764b
3 changed files with 203 additions and 89 deletions
14
divatool.py
14
divatool.py
|
|
@ -184,15 +184,15 @@ def main():
|
|||
if args.subcommand == "quest":
|
||||
diva.quest.update_missions(args.INPUT, args.OLD, LANGUAGES)
|
||||
elif args.command == "xdudata":
|
||||
script_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "tools"))
|
||||
if args.subcommand == "update":
|
||||
# add the tools folder to PATH
|
||||
os.environ["PATH"] += os.pathsep + os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)), "tools"
|
||||
)
|
||||
|
||||
# update the data
|
||||
xdudata.update_all(
|
||||
args.CACHE,
|
||||
args.XDUDATA,
|
||||
args.TRANS,
|
||||
args.EXTRACT,
|
||||
script_dir,
|
||||
LANGUAGES,
|
||||
args.CACHE, args.XDUDATA, args.TRANS, args.EXTRACT, LANGUAGES,
|
||||
)
|
||||
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue