pvanand commited on
Commit
c6c686e
·
verified ·
1 Parent(s): 398aecd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -42,8 +42,7 @@ async def create_kernel(session_token: str):
42
  # Create session directory
43
  session_dir = os.path.join(root_dir, "output", session_token)
44
  if not os.path.exists(session_dir):
45
- os.makedirs(session_dir)
46
- os.chmod(session_dir, 0o777)
47
 
48
  km = KernelManager()
49
  km.start_kernel()
 
42
  # Create session directory
43
  session_dir = os.path.join(root_dir, "output", session_token)
44
  if not os.path.exists(session_dir):
45
+ os.makedirs(session_dir, mode=0o777, exist_ok=True)
 
46
 
47
  km = KernelManager()
48
  km.start_kernel()