diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-09-27 16:05:43 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-09-28 10:24:14 +0300 |
commit | 5f05798c64c13576340046d0c8f58ca6b6978627 (patch) | |
tree | 249b7341ef04cefb14739d260226d5549800ea96 /subplot.py | |
parent | 19f27e688fcee990df0f29c8d9e073b6037dd445 (diff) | |
download | subplot-5f05798c64c13576340046d0c8f58ca6b6978627.tar.gz |
fix(subplot.{md,py,yaml}): run Subplot binaries from the source tree
This is akin to installing them to a directory in PATH. Instead of
doing that, we amend PATH so that the directory in the source tree
with the binaries are in there. This adds a "given an installed
subplot" step to every scenario that needs to run a Subplot binary.
Diffstat (limited to 'subplot.py')
-rw-r--r-- | subplot.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,12 @@ import json import os +def install_subplot(ctx): + runcmd_prepend_to_path = globals()["runcmd_prepend_to_path"] + srcdir = globals()["srcdir"] + runcmd_prepend_to_path(ctx, dirname=os.path.join(srcdir, "target", "debug")) + + def try_docgen(ctx, md=None, output=None): runcmd_run = globals()["runcmd_run"] |