Got a batch script in miniconda\envs\test\etc\conda\activate.d\env_vars.bat
with this set MY_KEY=secret_key
and miniconda\envs\test\etc\conda\deactivate.d\env_vars.bat
with this set MY_KEY=
.
Activated the environment and called echo %MY_KEY%
, but I don’t get the value.
Sincerely,
Toke Jepsen
18 Cumrae Street
Splott
CF24 2AJ
Cardiff, UK
Telephone No.: 00447527428225
Sorry I’ve noticed the code is in the activate.bat
. I think the problem is how I’m setting the environment for conda;
set PATH=%~dp0miniconda;%~dp0miniconda\Scripts
What else needs to be set for conda to be fully functional?
Sincerely,
Toke Jepsen
18 Cumrae Street
Splott
CF24 2AJ
Cardiff, UK
Telephone No.: 00447527428225
Thanks for that, Ray :)
I can see the batch scripts being executed by having echo "Setting Environment"
in the activate script, but the environments don’t get set for some reason.
I’ve tested the batch script outside of conda, and the environment variables get set so there shouldn’t be any problem with the batch script themselves.
Sincerely,
Toke Jepsen
18 Cumrae Street
Splott
CF24 2AJ
Cardiff, UK
Telephone No.: 00447527428225
Sincerely,
Toke Jepsen
18 Cumrae Street
Splott
CF24 2AJ
Cardiff, UK
Telephone No.: 00447527428225
This is something that got fixed recently. Conda 4.1 is probably necessary.