title: how to load virtualenv using environmental module file (tcl script)?
body: <p>I am trying to write a module file for a program that creates a python <code>virtualenv</code>. In order to start the <code>virtualenv</code>, it needs to first run <code>/programs/program-env/bin/activate</code>. How do I do this in a <code>modulefile</code>?
  Any help will be greatly appreciated.</p>
  
  <p>Note: I tried just putting the above line in the file and it didn't work.</p>
  
  <p>Thanks,</p>
  
  <p>Edit:</p>
  
  <p>I am writing a <a href="http://modules.sourceforge.net/man/modulefile.html" rel="noreferrer">modulefile</a> to load a program that can only run in a <code>virtualenv</code>. Normally these modulefiles will set variable names and/or add bin directory to path. Since the above package is somewhat different, I don't know how to proceed. An example module file can be found <a href="https://fs.hlrs.de/projects/craydoc/docs/books/S-2393-31/html-S-2393-31/appendix-5ptgipw3-las-creatingmodulefiles.html" rel="noreferrer">here</a>.</p>