I meant to send this to the list, not just to Brent…
···
---------- Forwarded message ----------
From: Warren Weckesser <warren.weckesser@…287…>
Date: Mon, Aug 18, 2008 at 4:03 PM
Subject: Re: [Matplotlib-users] Set MPLCONFIGDIR to something different
To: Brent Pedersen <bpederse@…287…>
Hi,
On Mon, Aug 18, 2008 at 3:55 PM, Brent Pedersen <bpederse@…287…> wrote:
On Mon, Aug 18, 2008 at 8:25 AM, stuartornum <stuart@…2110…> 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.
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