aboutsummaryrefslogtreecommitdiff
path: root/scripts/p7s/senpai.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-08-10 16:42:20 +0200
committeralexpdp7 <alex@corcoles.net>2025-08-10 16:43:10 +0200
commit4c15b787432e2cb41a0cc63fe4cdac81679faec4 (patch)
tree218560f14fef2995cff5fe3af326be459fb1f80b /scripts/p7s/senpai.py
parent023ba50fe6d115b859e5deb28120a0957fa50bcb (diff)
Also run ledger with nix-portable
Diffstat (limited to 'scripts/p7s/senpai.py')
-rw-r--r--scripts/p7s/senpai.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/p7s/senpai.py b/scripts/p7s/senpai.py
index 60629879..81956ce3 100644
--- a/scripts/p7s/senpai.py
+++ b/scripts/p7s/senpai.py
@@ -1,6 +1,4 @@
-#!/usr/bin/python3
-import os, shutil, subprocess, sys
+import p7s
-def main():
- os.environ["NP_RUNTIME"] = "bwrap"
- sys.exit(subprocess.run([shutil.which("nix-portable"), "nix", "run", "nixpkgs#senpai"]).returncode)
+
+main = p7s.nix_portable("senpai")