title: How can I load a module from inside a bash script?
body: <p>I'm trying to get a script running.  Essentially I need to load some modules and then execute a python script.  So something like this...</p>
  
  <pre><code>#!/usr/bin/env bash
  module use /PATH/TO/MODULEFILE
  module load MY_MODULE
  
  python my_script.py
  </code></pre>
  
  <p>The problem that I get is that every time I try to execute the script I get this error - "module: command not found".  I don't understand how to change the script to fix this.  I am able to run the module command from the shell.  I also ran "whereis -b module" and I just got "module:".</p>
  
  <p>What do I need to do to get this module loaded from inside the script?  Thanks</p>