##// END OF EJS Templates
Backport PR #13334: Fix race condition in paths.get_ipython_dirs()
Matthias Bussonnier -
Show More
@@ -67,7 +67,7 b' def get_ipython_dir() -> str:'
67 " using a temp directory.".format(parent))
67 " using a temp directory.".format(parent))
68 ipdir = tempfile.mkdtemp()
68 ipdir = tempfile.mkdtemp()
69 else:
69 else:
70 os.makedirs(ipdir)
70 os.makedirs(ipdir, exist_ok=True)
71 assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
71 assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
72 return ipdir
72 return ipdir
73
73
General Comments 0
You need to be logged in to leave comments. Login now