diff options
-rw-r--r-- | subplot/runcmd.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subplot/runcmd.py b/subplot/runcmd.py index 532b60b..2bf153c 100644 --- a/subplot/runcmd.py +++ b/subplot/runcmd.py @@ -49,7 +49,11 @@ def runcmd_get_argv(ctx): # ctx context. def runcmd_run(ctx, argv, **kwargs): ns = ctx.declare("_runcmd") + env = dict(os.environ) + for key, arg in kwargs.pop("env", {}).items(): + env[key] = arg + pp = ns.get("path-prefix") if pp: env["PATH"] = pp + ":" + env["PATH"] |