summaryrefslogtreecommitdiff
path: root/subplot.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-09-27 16:05:43 +0300
committerLars Wirzenius <liw@liw.fi>2020-09-28 10:24:14 +0300
commit5f05798c64c13576340046d0c8f58ca6b6978627 (patch)
tree249b7341ef04cefb14739d260226d5549800ea96 /subplot.py
parent19f27e688fcee990df0f29c8d9e073b6037dd445 (diff)
downloadsubplot-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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/subplot.py b/subplot.py
index 4ea0dc4..87b6990 100644
--- a/subplot.py
+++ b/subplot.py
@@ -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"]