Skip to content

Commit

Permalink
Merge pull request #70 from JuliaPy/sanitizepythonenv
Browse files Browse the repository at this point in the history
sanitize PYTHON environment vars when running conda
  • Loading branch information
stevengj authored Mar 26, 2017
2 parents 61fcdc7 + d75da1f commit 9ce99ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Conda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ const CONDARC = conda_rc(ROOTENV)
"""
Use a cleaned up environment for the command `cmd`.
Any environment variable starting by CONDA will interact with the run.
Any environment variable starting by CONDA or PYTHON will interact with the run.
"""
function _set_conda_env(cmd, env::Environment=ROOTENV)
env_var = copy(ENV)
to_remove = Compat.UTF8String[]
for var in keys(env_var)
if startswith(var, "CONDA")
if startswith(var, "CONDA") || startswith(var, "PYTHON")
push!(to_remove, var)
end
end
Expand Down

0 comments on commit 9ce99ef

Please sign in to comment.