annotate pylons_app/tests/configparser_test.py @ 199:78e406a4c58e
moved checking for user in session to wrapper function of LoginRequired decorator since it was working quite strange.
author |
Marcin Kuzminski <marcin@python-works.com> |
date |
Sat, 22 May 2010 20:47:34 +0200 |
parents |
2620dac853ad |
children |
|
rev |
line source |
6
|
1 import os
|
|
2 p = os.path.dirname(__file__)
|
|
3 repos = os.path.join(p, '../..', 'hgwebdir.config')
|
|
4 #repos = "/home/marcink/python_workspace/hg_app/hgwebdir.config"
|
|
5 print repos
|
|
6 from ConfigParser import ConfigParser
|
|
7
|
|
8 cp = ConfigParser()
|
|
9
|
|
10 cp.read(repos)
|
|
11 print cp.get('paths', '/')
|