Skip to content

Commit 3824551

Browse files
authored
Fixed assigning a value to potentially none-valued dictionary (#1511)
1 parent 0a45a54 commit 3824551

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/gen_coverage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ def run(
4141
"-DDPNP_GENERATE_COVERAGE=ON",
4242
]
4343

44-
env = None
44+
env = {}
4545
if bin_llvm:
4646
env = {
4747
"PATH": ":".join((os.environ.get("PATH", ""), bin_llvm)),
4848
"LLVM_TOOLS_HOME": bin_llvm,
4949
}
50-
env.update({k: v for k, v in os.environ.items() if k != "PATH"})
50+
51+
# extend with global enviroment variables
52+
env.update({k: v for k, v in os.environ.items() if k != "PATH"})
5153

5254
subprocess.check_call(cmake_args, shell=False, cwd=setup_dir, env=env)
5355

0 commit comments

Comments
 (0)