]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
tools: fix shell path env
authorDanct12 <danct12@disroot.org>
Sun, 12 Sep 2021 14:25:06 +0000 (21:25 +0700)
committerErfan Abdi <erfangplus@gmail.com>
Mon, 13 Sep 2021 18:07:08 +0000 (22:37 +0430)
tools/helpers/lxc.py

index 6e6398c85b3ab18111730799f64a9ac7a8ef0616..5e7b31078900c472d7bef94fccd54c3a4b469e4e 100644 (file)
@@ -258,7 +258,7 @@ def shell(args):
         command.append(args.COMMAND)
     else:
         command.append("/system/bin/sh")
-    subprocess.run(command)
+    subprocess.run(command, env={"PATH": os.environ['PATH'] + "/system/bin:/vendor/bin"})
 
 def logcat(args):
     if status(args) != "RUNNING":