summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-01-10 07:37:17 +0200
committerLars Wirzenius <liw@liw.fi>2020-01-10 08:11:47 +0200
commitfe488174702cf75acb9497418e1e3d76c580943b (patch)
treefb9dbabdee061a796e7b34f367034dd58c134a08 /subplot.py
parent8c583252d22856a47b5cdf30997cbae305b70f36 (diff)
downloadsubplot-fe488174702cf75acb9497418e1e3d76c580943b.tar.gz
Add: --templates option to sp-codegen
Diffstat (limited to 'subplot.py')
-rw-r--r--subplot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subplot.py b/subplot.py
index e53a018..bdd6236 100644
--- a/subplot.py
+++ b/subplot.py
@@ -12,7 +12,8 @@ def run_docgen(ctx, md=None, output=None):
def run_codegen(ctx, filename=None):
codegen = binary('sp-codegen')
- runcmd(ctx, [codegen, filename, '-o', 'test.py', '--run'])
+ tmpldir = os.path.join(srcdir, 'templates')
+ runcmd(ctx, [codegen, filename, '-o', 'test.py', '--run', '--templates', tmpldir])
exit_code_zero(ctx)
def file_exists(ctx, filename=None):