Mercurial > treepkg
comparison runtreepkg.py @ 4:fee641fec94e
Separate the kolab specific parts.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 09 Mar 2007 12:26:01 +0100 |
parents | f78a02e79c84 |
children | 96f4f58c62b5 |
comparison
equal
deleted
inserted
replaced
3:7e9db903ba16 | 4:fee641fec94e |
---|---|
10 | 10 |
11 import os | 11 import os |
12 import logging | 12 import logging |
13 from optparse import OptionParser | 13 from optparse import OptionParser |
14 | 14 |
15 from treepkg.packager import AssemblyLine, Packager | 15 from treepkg.packager import create_packager, Packager |
16 from treepkg.readconfig import read_config | 16 from treepkg.readconfig import read_config |
17 | 17 |
18 def initialize_logging(): | 18 def initialize_logging(): |
19 """Initializes the logging system""" | 19 """Initializes the logging system""" |
20 root = logging.getLogger() | 20 root = logging.getLogger() |
34 def main(): | 34 def main(): |
35 options, args = parse_commandline() | 35 options, args = parse_commandline() |
36 | 36 |
37 initialize_logging() | 37 initialize_logging() |
38 | 38 |
39 treepkg_opts, assembly_line_opts = read_config(options.config_file) | 39 treepkg_opts, packager_opts = read_config(options.config_file) |
40 packager = Packager([AssemblyLine(**opts) for opts in assembly_line_opts], | 40 packager = Packager([create_packager(**opts) for opts in packager_opts], |
41 **treepkg_opts) | 41 **treepkg_opts) |
42 packager.run() | 42 packager.run() |
43 | 43 |
44 main() | 44 main() |