- 
                Notifications
    You must be signed in to change notification settings 
- Fork 215
prepend location for temporary module file to $MODULEPATH with high priority + mark it as default in load_fake_module method #2506
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
Conversation
…s released >3 years ago) + make flake8 happy
…riority in load_fake_module method
        
          
                easybuild/tools/modules.py
              
                Outdated
          
        
      | :param priority: priority for this path in $MODULEPATH (Lmod-specific) | ||
| """ | ||
| if priority: | ||
| self.log.info("Ignoring specified priority '%s' when prepending %s to $MODULEPATH", priority, path) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add something here that it's called in use, not a prepend_path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| mkdir(path, parents=True) | ||
|  | ||
| if priority: | ||
| self.run_module(['use', '--priority', str(priority), path]) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was Lmod specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, this use implementation is custom to the Lmod class.
        
          
                easybuild/tools/modules.py
              
                Outdated
          
        
      | :param priority: priority for this path in $MODULEPATH (Lmod-specific) | ||
| """ | ||
| if priority: | ||
| self.log.info("Ignoring specified priority '%s' when running 'module use %s'", priority, path) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while in the code it's clear, I wonder if the log messages should also mention why the priority is ignored, for those not using Lmod
…her existing module file that is set as default
fix for #2499 reported by @mboisson based on suggestion by @ocaisa