Skip to content

Commit

Permalink
Syntax fix in the shell_commands method
Browse files Browse the repository at this point in the history
The built command now reflect more directly the command that is really executed by the the LMOD "module" bash function when a user execute "module load package_name/package_version".
  • Loading branch information
arbernard committed Aug 24, 2017
1 parent fed3206 commit 0988752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/galaxy/tools/deps/resolvers/lmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ def shell_commands(self, requirement):
# - Set the MODULEPATH environment variable
command = 'MODULEPATH=%s; ' % (self.lmod_dependency_resolver.modulepath)
command += 'export MODULEPATH; '
# - Execute the "module load" command
command += 'eval `%s load %s`; ' % (self.lmod_dependency_resolver.lmodexec, module_to_load)
# - Execute the "module load" command (or rather the "/path/to/lmod load" command)
command += 'eval `%s load %s` ' % (self.lmod_dependency_resolver.lmodexec, module_to_load)
# - Execute the "settarg" command in addition if needed
if self.lmod_dependency_resolver.settargexec is not None:
command += 'eval `%s -s sh`' % (self.lmod_dependency_resolver.settargexec)
command += '&& eval `%s -s sh`' % (self.lmod_dependency_resolver.settargexec)

return command

Expand Down

0 comments on commit 0988752

Please sign in to comment.