diff --git a/neotest_python/params_getter.py b/neotest_python/params_getter.py index c3ee78e..9c244f7 100644 --- a/neotest_python/params_getter.py +++ b/neotest_python/params_getter.py @@ -24,6 +24,7 @@ SOCKET_ROOT_DIR = Path("/tmp/neotest-python") python_socket_path = ( SOCKET_ROOT_DIR / hashlib.sha1(sys.executable.encode()).digest().hex() ) +python_socket_path.parent.mkdir(exist_ok=True,parents=True) logger = logging.getLogger('neotest-python') logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log')))