##// END OF EJS Templates
create ipython_dir if not exists
Bibo Hao -
Show More
@@ -71,6 +71,8 b' def get_ipython_dir() -> str:'
71 warn("IPython parent '{0}' is not a writable location,"
71 warn("IPython parent '{0}' is not a writable location,"
72 " using a temp directory.".format(parent))
72 " using a temp directory.".format(parent))
73 ipdir = tempfile.mkdtemp()
73 ipdir = tempfile.mkdtemp()
74 else:
75 os.makedirs(ipdir)
74 assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
76 assert isinstance(ipdir, str), "all path manipulation should be str(unicode), but are not."
75 return ipdir
77 return ipdir
76
78
General Comments 0
You need to be logged in to leave comments. Login now