radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
64 stars 32 forks source link

dev environ tool #7323

Open robnagler opened 1 month ago

robnagler commented 1 month ago

I often have problems when working with SIREPO_FEATURE_CONFIG_SIM_TYPES and SIREPO_FEATURE_CONFIG_PACKAGE_PATH. There's no convenient way to un/set them.

In BOP, we'd set an a config environment variable that would say which app we were working in. This is similar in Sirepo when working on custom repos (e.g. slactwin).

I think we need some sort of shell tool that supports environment switching.

e-carlin commented 1 month ago

This is one off the shelf solution I've seen https://direnv.net/

robnagler commented 1 month ago

direnv isn't quite right, because it requires you to cd first. I'm not sure it integrates well with emacs (but maybe).