Mercurial > kallithea
view pylons_app/tests/configparser_test.py @ 102:2dc0c8e4f384
Updated tempaltes, added file browser breadcrumbs, and feed icons
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 25 Apr 2010 18:42:58 +0200 |
parents | 2620dac853ad |
children |
line wrap: on
line source
import os p = os.path.dirname(__file__) repos = os.path.join(p, '../..', 'hgwebdir.config') #repos = "/home/marcink/python_workspace/hg_app/hgwebdir.config" print repos from ConfigParser import ConfigParser cp = ConfigParser() cp.read(repos) print cp.get('paths', '/')