Would it be more user-friendly for the payu module to only expose the payu command rather than including all the conda stuff? E.g. by putting a symlink to payu in a new directory and having the module only add that directory to $PATH.
The latest payu module is deployed using Dale Robert’s work at CLEX of containerising conda environments (forked from the cms-conda-singularity repository) so it will be similar to the analysis environments. The module sets environment variables to what it would be if micromamba activate was run on the un-containerised version of the conda environment. An exception is the$PATH outside the container includes the directory of launcher entry-point scripts (e.g. payu) that launch the container and runs the command inside the container. It might be possible to remove the conda-specific environment variables, though I’d have to test to see if anything breaks (created related issue here).