planet/publish.py
Sam Ruby 399b0f052a Make list of publishable feeds configurable, per:
http://lists.planetplanet.org/archives/devel/2010-June/002149.html

Also change use of stderr to log, and provide a main program entry point
which can be used to initiate publishing.
2010-06-15 21:16:43 -04:00

18 lines
385 B
Python
Executable File

#!/usr/bin/env python
"""
Main program to run just the splice portion of planet
"""
import os.path
import sys
from planet import publish, config
if __name__ == '__main__':
if len(sys.argv) == 2 and os.path.isfile(sys.argv[1]):
config.load(sys.argv[1])
publish.publish(config)
else:
print "Usage:"
print " python %s config.ini" % sys.argv[0]