Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a20999

Browse files
authored
create ipython_dir if not exists
1 parent a55a5b4 commit 7a20999

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

IPython/paths.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def get_ipython_dir() -> str:
7171
warn("IPython parent '{0}' is not a writable location,"
7272
" using a temp directory.".format(parent))
7373
ipdir = tempfile.mkdtemp()
74+
else:
75+
os.makedirs(ipdir)
7476
assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
7577
return ipdir
7678

0 commit comments

Comments
 (0)