diff --git a/post/clang_tidy_review/clang_tidy_review/__init__.py b/post/clang_tidy_review/clang_tidy_review/__init__.py index 586f4f1..d7a1316 100644 --- a/post/clang_tidy_review/clang_tidy_review/__init__.py +++ b/post/clang_tidy_review/clang_tidy_review/__init__.py @@ -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(