summaryrefslogtreecommitdiff
path: root/subplot/bumper.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-28 13:02:04 +0300
committerLars Wirzenius <liw@liw.fi>2021-03-28 13:02:04 +0300
commit81fa9799b1393f427e4095978285cabbaa809735 (patch)
treed4e2c63ae9282cc214071832df5f674b29816877 /subplot/bumper.py
parenta52a81a967558e56e7ea34d2d5788fe5dd312ee1 (diff)
parentaf24be332de7c6762358c3c34b6dc266b7807154 (diff)
downloadbumper-rs-81fa9799b1393f427e4095978285cabbaa809735.tar.gz
Merge branch 'start' into main
Diffstat (limited to 'subplot/bumper.py')
-rw-r--r--subplot/bumper.py9
1 files changed, 9 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"))