|
From: Fernando P. <Fer...@co...> - 2004-08-22 08:07:45
|
Abraham Schneider wrote:
> I completely agree. I recently changed the code to allow a path to be
> specified (':' deliminated). I hadn't thought of allowing '$VAR' syntax
> .. something to think about. However, if people have a .matplotlibrc
> file in their home directory, it should make it so people aren't mucking
> up things with the plugins.. I'll have to check the behavior of
> find_module to see what it does with '~' and such.
You can expand the user-given string by doing:
user_dirlist = os.path.expanduser(os.path.expandvars(user_path)).split(':')
This gives you a list of directories to search, with user ~names and
$VARIABLES expanded out. This approach worked fine for mayavi.
Best,
f
|