On Feb 9, 2:18 pm, Gael Pasgrimaud <g...@gawel.org> wrote:
> Hi,
>
> On Tue, Feb 9, 2010 at 12:43 PM, morellik <enrico.more...@gmail.com> wrote:
> > Dear all,
>
> > I wrote an application where users  can upload files up to 1GB. I
> > noticed that Pylons use /tmp like temporary directory before write the
> > file on the correct location. More times this behaviour fill my /tmp
> > directory causing an internal server error with the risk to crashing
> > other applications. So is it possible to change the temporary
> > directory or instruct Pylons to write directly in the correct
> > location?
>
> I guess Pylons use python's tempfile module. You can try to change the
> tempdir or set an env var:
>
> http://docs.python.org/library/tempfile.html#tempfile.tempdir
>

Yes I know that. But I tried to set an environment variable to change
the temporary location, without success.
I tried to set os.environ['TMPDIR']='/temp_directory'  (and the other
possibilities explained in the link)
in a python shell, but tempfile.gettempdir() give me '/tmp' in all
cases.

-- 
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