24
24
sys.path.insert(0, os.path.join(sys.path[0], os.pardir, "lib"))
26
26
from cdimage.tree import Publisher, Tree
30
30
parser = OptionParser("%prog DATE [IMAGE_TYPE]")
33
33
parser.error("need date")
35
35
image_type = args[1] if len(args) >= 2 else "daily"
36
37
tree = Tree.get_daily(config)
37
38
Publisher.get_daily(tree, image_type).publish(date)