Skip to content
Newer
Older
100755 19 lines (15 sloc) 423 Bytes
9fa9fb6 Change planet:subscription to planet:source, and expand the information
Sam Ruby authored Aug 18, 2006
1 #!/usr/bin/env python
b31973d Initial load
Sam Ruby authored Aug 16, 2006
2 """
3 Main program to run just the splice portion of planet
4 """
5
6 import os.path
7 import sys
c610c93 Load configuration only once
Sam Ruby authored Sep 3, 2006
8 from planet import splice, config
b31973d Initial load
Sam Ruby authored Aug 16, 2006
9
10 if __name__ == '__main__':
11
12 if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
c610c93 Load configuration only once
Sam Ruby authored Sep 3, 2006
13 config.load(sys.argv[1])
14 doc = splice.splice()
7cbc2e3 Theme support
Sam Ruby authored Aug 21, 2006
15 splice.apply(doc.toxml('utf-8'))
b31973d Initial load
Sam Ruby authored Aug 16, 2006
16 else:
17 print "Usage:"
18 print " python %s config.ini" % sys.argv[0]
Something went wrong with that request. Please try again.