From: Natsu <nat...@ya...> - 2005-03-15 12:21:04
|
Hi, here I propose a minimum patch to fontmanager.py from 0.72.1 which I've confirmed to work on Japanese Win2k. $ diff font_manager.org.py font_manager.py 113,118c113,121 < key, direc, any = _winreg.EnumValue( local, j) < if not os.path.dirname(direc): < direc = os.path.join(directory, direc) < direc = os.path.abspath(direc).lower() < if direc[-4:] == '.'+fontext: < items[direc] = 1 --- > try: > key, direc, any = _winreg.EnumValue( local, j) > if not os.path.dirname(direc): > direc = os.path.join(directory, direc) > direc = os.path.abspath(direc).lower() > if direc[-4:] == '.'+fontext: > items[direc] = 1 > except EnvironmentError: > pass The idea is taken from a Japanese blog. http://somethingred.dip.jp/blog/239 The author of the Blog seems to have some idea to patch _winreg, also. http://somethingred.dip.jp/blog/253 -- Natsu Mizutani |