source: CCCC/trunk/ceda_cc/c4.py @ 327

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CCCC/trunk/ceda_cc/c4.py@327
Revision 327, 758 bytes checked in by mjuckes, 6 years ago (diff)

Additional documentation; missing import added in c4.py

Line 
1"""c4.py
2##########
3Entry point for command line usage -- see ccinit for usage information.
4"""
5import sys, string
6
7def main_entry():
8  """
9   Wrapper around main() for use with setuptools.
10
11  """
12  if sys.argv[1] == '--sum':
13      import summary
14      summary.main()
15  elif sys.argv[1] == '-v':
16      from versionConfig import version, versionComment
17      print 'ceda-cc version %s [%s]' % (version,versionComment)
18  elif sys.argv[1] == '--unitTest':
19      print "Starting test suite 1"
20      import unitTestsS1
21      print "Starting test suite 2"
22      import unitTestsS2
23      print "Tests completed"
24  else:
25     from c4_run import main
26     cmdl = string.join( sys.argv )
27     main(printInfo=True, cmdl=cmdl)
28
29if __name__ == '__main__':
30  main_entry()
Note: See TracBrowser for help on using the repository browser.