On Feb 9, 9:01 pm, Mike Orr <sluggos...@gmail.com> wrote:
> On Tue, Feb 9, 2010 at 6:15 AM, morellik <enrico.more...@gmail.com> wrote:
> > I find a solution. I don't know if this is the best solution, but
> > works.
>
> > I put in base.py
>
> > import tempfile
> > tempfile.tempdir = '/temp_directory'
>
> Does it work if you set that in environment.py? Then you can have it
> based on an INI file setting.
>

Yes. Thanks.
Now I wrote
tmp_dir = '/temporary_directory'
in the INI file.
So in environment.py I wrote:
import tempfile
.
.
tempfile.tempdir = config['app_conf']['tmp_dir']

and all works fine.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-disc...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to