pangeo-data / cookiecutter-pangeo-binder

Pangeo-Binder Cookiecutter Template
https://pangeo-binder.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

setting environment variables #15

Closed ghost closed 4 years ago

ghost commented 4 years ago

I hope this is an OK place to ask this question...I have made a simple pangeo binder. I copy in some binaries using curl in my postBuild script. But...I can't figure out how to add their location to the system path using an environment variable. Is that even possible?

Many thanks!

jhamman commented 4 years ago

Have you tried setting the PATH variable in your postBuild script?

ghost commented 4 years ago

Yep - that's what I've been trying using an export statement. But when I look at the PATH variable in the terminal through the binder browser it has not been updated. Is there another way?

jhamman commented 4 years ago

You could try setting it in the start file which is executed at launch (not build).

ghost commented 4 years ago

thanks @jhamman! I rocked it in the start file and worked great!