Tutorial to aid adding a new e2program to the e2projectmanager.py

This tutorial covers the necessary steps to incorporate a e2program into the projectmanager.

Modifications to the e2program itself

Canonical e2programs must maintain the following standards

  1. Options are handled via EMArgumentParser, which is a subclass of Python's argparse module (version 2.7 and higher).
  2. Arguments are handled via EMArgumentParser.
  3. A line usage = """blah, blah, blah...""" must be present to give help info on the e2program
  4. A line progname = os.path.basename(sys.argv[0]) must be present

To illustrate, here is an example program:

   1 #!/usr/bin/env python
   2 
   3 from EMAN2 import *
   4 
   5 def main():
   6     progname = os.path.basename(sys.argv[0])
   7     usage = """prog arg1, arg2, [options] 
   8             This is an exmaple program """