|
From: John H. <jdh...@ac...> - 2003-11-06 18:08:58
|
>>>>> "LUK" == LUK ShunTim <shu...@po...> writes:
H:\00work\00cvs\matplotlib\matplotlib\examples>python subplot_demo.py -dPS
['E:\\Py23\\share\\matplotlib', 'E', '\\Py23e\\share\\matplotlib']
Oh, I see the bug. The reason the lines are there that you commented
out is to allow you to specify multiple font dirs in your path, as in
set AFMPATH = c:\somepath\fonts;e:\some\other\path\fonts
But I wasn't properly doing a platform independent path split.
The code should read
def _get_afm_filenames(self):
paths = [os.path.join(distutils.sysconfig.PREFIX, 'share', 'matplotlib')]
if os.environ.has_key('AFMPATH'):
afmpath = os.environ['AFMPATH']
paths.extend(afmpath.split(os.pathsep))
fnames = [fname for fname in get_recursive_filelist(paths)
if fname.lower().find('.afm')>0 and
os.path.exists(fname)]
return fnames
Thanks for helping me diagnose it. Please let me know if the above
works on your system!
John Hunter
|