summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--subplot/bumper.py9
-rw-r--r--subplot/bumper.yaml2
2 files changed, 11 insertions, 0 deletions
diff --git a/subplot/bumper.py b/subplot/bumper.py
new file mode 100644
index 0000000..66d2564
--- /dev/null
+++ b/subplot/bumper.py
@@ -0,0 +1,9 @@
+import os
+
+
+def install_bumper(ctx):
+ runcmd_prepend_to_path = globals()["runcmd_prepend_to_path"]
+ srcdir = globals()["srcdir"]
+
+ # Add the directory with built Rust binaries to the path.
+ runcmd_prepend_to_path(ctx, dirname=os.path.join(srcdir, "target", "debug"))
diff --git a/subplot/bumper.yaml b/subplot/bumper.yaml
new file mode 100644
index 0000000..f74c28e
--- /dev/null
+++ b/subplot/bumper.yaml
@@ -0,0 +1,2 @@
+- given: "an installed Bumper"
+ function: install_bumper