~launchpad-pqm/launchpad/devel

12190.1.1 by Jonathan Lange
Always use Python 2.6
1
#!/usr/bin/python2.6 -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
13141.1.1 by Jelmer Vernooij
Add lib/ directory to the beginning of sys.path, in case there are clashes with
11
sys.path.insert(0,
9550.12.8 by Michael Hudson
null merge trunk r9576 (which reverted merge of this branch)
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))