Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3cef3 commit 962e609Copy full SHA for 962e609
1 file changed
lib/matplotlib/__init__.py
@@ -496,7 +496,11 @@ def matplotlib_fname():
496
"""
497
498
def gen_candidates():
499
- yield os.path.join(os.getcwd(), 'matplotlibrc')
+ # rely on down-stream code to make absolute. This protects us
500
+ # from having to directly get if the current working directory
501
+ # which can fail if the user has ended up with a cwd that is
502
+ # non-existent.
503
+ yield 'matplotlibrc'
504
try:
505
matplotlibrc = os.environ['MATPLOTLIBRC']
506
except KeyError:
0 commit comments