Josh Narins | 26 Aug 21:39

Re: Instead of /tmp directory?

Bruno,

> On Fri 12-Aug-2005 at 09:38 -0400, Josh Narins wrote:
> > 
> > I was hoping you could tell me what option I could change so that the
> > petal_cache and petal_debug files didn't end up in /tmp. I'd like to
> > change them to /tmp/petal, if that helps (doubtful, but one never
> > knows).
> 
> Petal uses File::Spec->tmpdir() for this, so you can change the
> directory for the cached templates by setting $ENV{TMPDIR}.

Thanks, but that changes other things, too.

I hope future versions allow passing a variable to the Petal
instantiation to set the tmpdir.

Bruno Postle | 29 Aug 00:02
X-Face

Re: Instead of /tmp directory?

On Fri 26-Aug-2005 at 15:39 -0400, Josh Narins wrote:

> > > I was hoping you could tell me what option I could change so that the
> > > petal_cache and petal_debug files didn't end up in /tmp. I'd like to
> > > change them to /tmp/petal, if that helps (doubtful, but one never
> > > knows).
> > 
> > Petal uses File::Spec->tmpdir() for this, so you can change the
> > directory for the cached templates by setting $ENV{TMPDIR}.
> 
> Thanks, but that changes other things, too.

If nothing else, it would be useful to separate the petal_cache and
petal_debug files - Neither are really temp files anyway.

--

-- 
Bruno


Gmane