I'm using pylons to build websites. I want to write some files to a directory under the root of the project, but I don't konw how can I get the root path(project path) in the controller?
A:
Try this:
from pylons import config
print config['pylons.paths']['root']
Maciej Kucharz
2010-09-04 10:53:11