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

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

drastically reduced content of c4.py -- moved code to c4_run.py

Line 
1"""ceda_cc
2##########
3USAGE: see README.txt in distribution directory.
4"""
5import sys
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.