Mercurial > kallithea
comparison celeryconfig.py @ 512:d945c95ba4ac
refactoring for new vcs implementation
renamed all ._short and .raw_id into .short_id
updated dependency for vcs to 0.1.6
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 Sep 2010 20:25:58 +0000 |
parents | d5efb83590ef |
children | 53aa1ee1af86 |
comparison
equal
deleted
inserted
replaced
511:0fce1f9e4dce | 512:d945c95ba4ac |
---|---|
2 import sys | 2 import sys |
3 import os | 3 import os |
4 import ConfigParser | 4 import ConfigParser |
5 root = os.getcwd() | 5 root = os.getcwd() |
6 | 6 |
7 PYLONS_CONFIG_NAME = 'development.ini' | 7 PYLONS_CONFIG_NAME = 'production.ini' |
8 | 8 |
9 sys.path.append(root) | 9 sys.path.append(root) |
10 config = ConfigParser.ConfigParser({'here':root}) | 10 config = ConfigParser.ConfigParser({'here':root}) |
11 config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) | 11 config.read('%s/%s' % (root, PYLONS_CONFIG_NAME)) |
12 PYLONS_CONFIG = config | 12 PYLONS_CONFIG = config |