~launchpad-pqm/launchpad/devel

10555.1.1 by Julian Edwards
update-sourcecode should use the system python
1
#!/usr/bin/python -u
9370.1.10 by Jonathan Lange
Add a script that updates sourcecode.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
6
"""Update the sourcecode managed in sourcecode/."""
7
9550.12.8 by Michael Hudson
null merge trunk r9576 (which reverted merge of this branch)
8
import os
9370.1.10 by Jonathan Lange
Add a script that updates sourcecode.
9
import sys
10
9550.12.8 by Michael Hudson
null merge trunk r9576 (which reverted merge of this branch)
11
sys.path.append(
12
    os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
13
9370.1.10 by Jonathan Lange
Add a script that updates sourcecode.
14
from devscripts import sourcecode
15
16
17
if __name__ == '__main__':
18
    sys.exit(sourcecode.main(sys.argv))