tags:

views:

24

answers:

1

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