From f9b36a4f407abf5a6379fe31d3e42ee1698f9639 2021-11-09 15:01:52 From: Bibo Hao Date: 2021-11-09 15:01:52 Subject: [PATCH] Update paths.py --- diff --git a/IPython/paths.py b/IPython/paths.py index a2ea5bc..f96ec4d 100644 --- a/IPython/paths.py +++ b/IPython/paths.py @@ -72,7 +72,7 @@ def get_ipython_dir() -> str: " using a temp directory.".format(parent)) ipdir = tempfile.mkdtemp() else: - os.makedirs(ipdir) + os.makedirs(ipdir, exist_ok=True) assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not." return ipdir