matplotlib/matplotlib — pull request #677 by jkseppan (2012-01-16 21:41:54+00:00)
Title: Only call dirname on string-like directory names

In [issue 672](https://github.com/matplotlib/matplotlib/issues/672) @gujax reports that the registry includes an entry where the value is numeric, not a string, and os.path.dirname crashes. This should avoid that problem, but I don't have a Windows system to test on.