Skip to content

Commit b5199f3

Browse files
committed
mk data dir if not exists
1 parent 9b43e63 commit b5199f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

idom_jupyter/jupyter_server_extension.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Any
2+
from pathlib import Path
23
from urllib.parse import urljoin
34

45
from appdirs import user_data_dir
@@ -13,7 +14,8 @@
1314
from idom.config import IDOM_WED_MODULES_DIR as IDOM_WEB_MODULES_DIR
1415

1516

16-
IDOM_WEB_MODULES_DIR.current = user_data_dir("idom-jupyter", "idom-team")
17+
IDOM_WEB_MODULES_DIR.current = Path(user_data_dir("idom-jupyter", "idom-team"))
18+
IDOM_WEB_MODULES_DIR.current.mkdir(parents=True, exist_ok=True)
1719
IDOM_RESOURCE_BASE_PATH = "_idom_web_modules"
1820

1921

0 commit comments

Comments
 (0)