From: Warren W. <war...@gm...> - 2008-08-18 20:42:23
|
I meant to send this to the list, not just to Brent... ---------- Forwarded message ---------- From: Warren Weckesser <war...@gm...> Date: Mon, Aug 18, 2008 at 4:03 PM Subject: Re: [Matplotlib-users] Set MPLCONFIGDIR to something different To: Brent Pedersen <bpe...@gm...> Hi, On Mon, Aug 18, 2008 at 3:55 PM, Brent Pedersen <bpe...@gm...> wrote: > On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <st...@mu...> wrote: > > > > Hi Jeff, > > > > Sorry I should have explained more. I am running a web app also I > currently > > working for a very large organisation so the infrastructure is quite > > different to your average home / signle server setup. > > > > Thank you.<https://lists.sourceforge.net/lists/listinfo/matplotlib-users> > > > > i think before importing matplotlib, you can do: > os.environ['HOME'] = "/some/path" > > I do that on my server, e.g. my python CGI scripts do os.environ['HOME'] = '/var/www/tmp' before importing anything from matplotlib. Seems to work fine. This is explained in a FAQ or doc or tutorial somewhere. Warren |