From 05cb2fa1e996a314a2af4314bd067db9060fcd5e Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Wed, 8 Jul 2020 07:53:21 +0200 Subject: [PATCH] Add context and fix typos for template generation --- lokrez/__init__.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lokrez/__init__.py b/lokrez/__init__.py index dbd19df..c02efe4 100644 --- a/lokrez/__init__.py +++ b/lokrez/__init__.py @@ -175,11 +175,18 @@ def main(): "players" : sorted( top_players.values(), key = lambda p: p.placement, - ) + ), + "imgdir_ssbu_chars": os.path.join( + args.resourcesdir, + "ssbu", + "Super Smash Bros Ultimate", + "Fighter Portraits", + ), + } - if args.oufile is None: + if args.outfile is None: args.outfile = "{}.svg".format(tournament.slug) jj2_tpl.stream(context).dump( args.outfile )