Skip to content

Commit 68adbfa

Browse files
committed
pass current env to callshell
1 parent cdf112c commit 68adbfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

patchwork/steps/CallShell/CallShell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from __future__ import annotations
22

3+
import os
34
import shlex
45
import subprocess
56
from pathlib import Path
67

78
from patchwork.common.utils.utils import mustache_render
89
from patchwork.logger import logger
910
from patchwork.step import Step, StepStatus
11+
from patchwork.steps import CallSQL
1012
from patchwork.steps.CallShell.typed import CallShellInputs, CallShellOutputs
1113

1214

@@ -24,7 +26,7 @@ def __parse_env_text(env_text: str) -> dict[str, str]:
2426
env_spliter.whitespace_split = True
2527
env_spliter.whitespace += ";"
2628

27-
env: dict[str, str] = dict()
29+
env: dict[str, str] = os.environ.copy()
2830
for env_assign in env_spliter:
2931
env_assign_spliter = shlex.shlex(env_assign, posix=True)
3032
env_assign_spliter.whitespace_split = True

0 commit comments

Comments
 (0)