Refactor cumulus-util into a library plus small command front-end.
[cumulus.git] / cumulus-util
1 #!/usr/bin/python
2 #
3 # Utility for managing Cumulus archives.
4
5 import os, sys
6
7 # Automatically set Python path, based on script directory.  This should be
8 # removed if the tools are properly installed somewhere.
9 script_directory = os.path.dirname(sys.argv[0])
10 sys.path.append(os.path.join(script_directory, 'python'))
11
12 import cumulus.cmd_util
13
14 cumulus.cmd_util.main(sys.argv)