No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

splice.py 423B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. """
  3. Main program to run just the splice portion of planet
  4. """
  5. import os.path
  6. import sys
  7. from planet import splice, config
  8. if __name__ == '__main__':
  9. if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
  10. config.load(sys.argv[1])
  11. doc = splice.splice()
  12. splice.apply(doc.toxml('utf-8'))
  13. else:
  14. print "Usage:"
  15. print " python %s config.ini" % sys.argv[0]