easybuild-framework icon indicating copy to clipboard operation
easybuild-framework copied to clipboard

Working directory pickup of configuration files

Open espenfl opened this issue 2 years ago • 1 comments

Is there support for eb picking the configuration file in the folder it is executed? Does not seems to be the case and I could not find it in the docs. Is this something that could rather easily be added?

Also, maybe I did not read the documentation clearly enough, but how is the configuration variables set if you have a global configuration file and a local one? Maybe that is not possible and only one is used/specified? In this case, it would be nice to support this in view of the initial question.

espenfl avatar Feb 18 '22 19:02 espenfl

If you mean the EasyBuild configuration file, easybuild.cfg then you can use --configfiles= which expects a "," separated list of files to read the configuration from. See eb --help for more details.

The variables are read in the order specified by --configfiles or by default site-config, user-config. Last read value wins.

akesandgren avatar Feb 21 '22 07:02 akesandgren