Skip to content

Commit

Permalink
Fix os.environ usage
Browse files Browse the repository at this point in the history
  • Loading branch information
17451k committed Nov 18, 2020
1 parent 8b0d9a1 commit 46bfcda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clade/extensions/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _run_cif(self, cmd):
tmp_dir, os.path.basename(cmd_in.lstrip(os.sep)) + ".o"
)

cif_env = dict()
cif_env = dict(os.environ)
cif_env["CIF_INFO_DIR"] = self.cif_output_dir
cif_env["C_FILE"] = norm_cmd_in

Expand Down Expand Up @@ -217,7 +217,7 @@ def _run_cif(self, cmd):
stderr=subprocess.STDOUT,
cwd=cwd,
universal_newlines=True,
env=os.environ.update(cif_env)
env=cif_env
)
self.__save_log(cmd["id"], cwd, cif_args, cif_env, output, self.cif_log)
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit 46bfcda

Please sign in to comment.