Skip to content

Commit

Permalink
Merge pull request #111 from bwrsandman/env
Browse files Browse the repository at this point in the history
Don't override original env variables
  • Loading branch information
ZedThree authored Jan 18, 2024
2 parents 90f19b9 + d8b8a3c commit a771054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion post/clang_tidy_review/clang_tidy_review/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ def build_clang_tidy_warnings(
start = datetime.datetime.now()
try:
with message_group(f"Running:\n\t{args}"):
env = dict(os.environ)
env["USER"] = username
subprocess.run(
args,
capture_output=True,
check=True,
encoding="utf-8",
env={"USER": username},
env=env,
)
except subprocess.CalledProcessError as e:
print(
Expand Down

0 comments on commit a771054

Please sign in to comment.