Skip to content

Conversation

@Flamefire
Copy link
Contributor

This basically moves the common functionality of use and unuse into _set_module_path which takes care of proper logging and handling empty paths. Note that an empty string is different to no path, i.e. $MODULEPATH='' is different to unset MODULEPATH in Lmod. Checked with module use '' which yields a set, but empty MODULEPATH and a module unused $MODULEPATH remove that variable completely

Not fully sure if there was a bug before, but now there provably is not due to the enhanced tests :)

Lmod ignores if a path exists so we should be able to do the same
Introduce _set_module_path which correctly handles empty paths and empty lists
with proper logging
@Flamefire
Copy link
Contributor Author

Closed as included in #3636

@Flamefire Flamefire closed this Apr 14, 2021
@Flamefire Flamefire deleted the simplifyUseUnuse branch September 21, 2021 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants