Skip to content

Commit 50a7e18

Browse files
committed
Merge remote-tracking branch 'upstream/v1.4.x'
2 parents e661a02 + 87d79a1 commit 50a7e18

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
@@ -599,8 +599,8 @@ def _get_config_or_cache_dir(xdg_base):
599599

600600
configdir = os.environ.get('MPLCONFIGDIR')
601601
if configdir is not None:
602+
configdir = os.path.abspath(configdir)
602603
if not os.path.exists(configdir):
603-
from matplotlib.cbook import mkdirs
604604
mkdirs(configdir)
605605

606606
if not _is_writable_dir(configdir):

0 commit comments

Comments
 (0)