~launchpad-pqm/launchpad/devel

10637.3.1 by Guilherme Salgado
Use the default python version instead of a hard-coded version
1
#!/usr/bin/python -S
10147.5.1 by Julian Edwards
First cut
2
#
10147.5.13 by Julian Edwards
more cleanups from Brad's review
3
# Copyright 2010 Canonical Ltd.  This software is licensed under the
10147.5.1 by Julian Edwards
First cut
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
6
# pylint: disable-msg=C0103,W0403
7
8
import _pythonpath
9
10147.5.6 by Julian Edwards
Re-factor code to look like a normal LP script.
10
from lp.soyuz.scripts.ppa_add_missing_builds import PPAMissingBuilds
10147.5.1 by Julian Edwards
First cut
11
from canonical.config import config
12
13
if __name__ == "__main__":
10147.5.6 by Julian Edwards
Re-factor code to look like a normal LP script.
14
    script = PPAMissingBuilds(
15
        "ppa-add-missing-builds", dbuser=config.builddmaster.dbuser)
16
    script.lock_and_run()