From 7a20999bb2097a781b81e3098ba3e379cdd6b14e 2021-10-08 08:43:44 From: Bibo Hao Date: 2021-10-08 08:43:44 Subject: [PATCH] create ipython_dir if not exists --- diff --git a/IPython/paths.py b/IPython/paths.py index 43146b0..a2ea5bc 100644 --- a/IPython/paths.py +++ b/IPython/paths.py @@ -71,6 +71,8 @@ def get_ipython_dir() -> str: warn("IPython parent '{0}' is not a writable location," " using a temp directory.".format(parent)) ipdir = tempfile.mkdtemp() + else: + os.makedirs(ipdir) assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not." return ipdir