Skip to content

Commit

Permalink
make parents for venv dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Sep 14, 2024
1 parent 847d68d commit 7dccd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jupyterhub_config/custom_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _ensure_virtual_environment(self, user_env_dir: Path):
created with the system site-packages included.
"""
if not user_env_dir.exists():
user_env_dir.mkdir(exist_ok=True)
user_env_dir.mkdir(exist_ok=True, parents=True)
self.log.info(f'Creating virtual environment for {self.user.name}')
try:
# Create a virtual environment with system site-packages access
Expand Down

0 comments on commit 7dccd9a

Please sign in to comment.