translateorgza / pootle forked from julen/pootle

Web-based translation and translation management tool

This URL has Read+Write access

pootle / manage.py
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
6afc736f » friedelwolff 2009-05-12 Update copyright notice, wr... 4 # Copyright 2008-2009 Zuza Software Foundation
5 #
6 # This file is part of Pootle.
7 #
8 # This program is free software; you can redistribute it and/or modify
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
6afc736f » friedelwolff 2009-05-12 Update copyright notice, wr... 12 #
13 # This program is distributed in the hope that it will be useful,
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
6afc736f » friedelwolff 2009-05-12 Update copyright notice, wr... 19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 20
97a9090e » alaaosh 2009-04-29 centralize sys.path manipul... 21 import syspath_override
f8e8dae6 » alaaosh 2009-04-09 move all python modules exc... 22
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 23 from django.core.management import execute_manager
24 try:
6afc736f » friedelwolff 2009-05-12 Update copyright notice, wr... 25 from pootle import settings
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 26 except ImportError:
27 import sys
6afc736f » friedelwolff 2009-05-12 Update copyright notice, wr... 28 sys.stderr.write("""Error: Can't find the file 'settings.py' in the directory containing %r.
29 It appears you've customized things.
30
31 You'll have to run django-admin.py, passing it your settings module.
32 (If the file settings.py does indeed exist, it's causing an ImportError somehow.)""" % __file__)
097e7f1f » winterstream 2008-12-12 This adds the files needed ... 33 sys.exit(1)
34
35 if __name__ == "__main__":
36 execute_manager(settings)