Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only reset $MODULEPATH before loading a module if environment was reset #1795

Merged
merged 2 commits into from Jun 10, 2016

Conversation

boegel
Copy link
Member

@boegel boegel commented Jun 7, 2016

fix for #1787, alternative for #1792

Always redefining $MODULEPATH according to self.mod_paths for every load is wrong, since the $MODULEPATH may have been tweaked by previous loads with a module hierarchy.

Besides, it's fairly expensive to do so as well (lots of unnecessary module use commands...).

@boegel boegel added this to the v2.9.0 milestone Jun 7, 2016
@boegel
Copy link
Member Author

boegel commented Jun 7, 2016

@damianam please verify whether this fixes #1787?

@damianam
Copy link
Member

damianam commented Jun 7, 2016

I've just checked it (I needed the bug fix for something, so timing was really convenient). It works now for me.

@damianam
Copy link
Member

damianam commented Jun 7, 2016

Attached a debug log for those interested. ncurses was previously picked up from the wrong level (dummy)

easybuild-Python-2.7.11-20160607.151121.log.gz

@boegel
Copy link
Member Author

boegel commented Jun 7, 2016

@damianam Thanks for the confirmation!

I'll see if this needs a test before it can be merged in...

@boegel
Copy link
Member Author

boegel commented Jun 10, 2016

Test added, Travis approves, going in, thanks for reporting this @damianam and for verifying the fix.

@boegel boegel merged commit 8ae536f into easybuilders:develop Jun 10, 2016
@boegel boegel deleted the fix1787 branch June 10, 2016 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants