Skip to content

Commit 0ed216f

Browse files
committed
Merge pull request matplotlib#3827 from tacaswell/config_abspath
ENH : make sure configdir is absolute path
2 parents 1cf1ab1 + 30e8580 commit 0ed216f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ def _get_config_or_cache_dir(xdg_base):
582582

583583
configdir = os.environ.get('MPLCONFIGDIR')
584584
if configdir is not None:
585+
configdir = os.path.abspath(configdir)
585586
if not os.path.exists(configdir):
586-
from matplotlib.cbook import mkdirs
587587
mkdirs(configdir)
588588

589589
if not _is_writable_dir(configdir):

0 commit comments

Comments
 (0)