Ramesh-vani commited on
Commit
cd080a4
·
verified ·
1 Parent(s): 4b5a232

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -404,10 +404,10 @@ async def join(websocket, key):
404
  # Register to receive moves from this game.
405
  connected.add(websocket)
406
  try:
407
- base_path = os.path.join(os.getcwd(), 'projects', key)
408
  mod_command = f'cd {base_path} && ls'
409
  process = await asyncio.create_subprocess_shell(
410
- 'ls',
411
  # cwd=base_path,
412
  stdin=asyncio.subprocess.PIPE,
413
  stdout=asyncio.subprocess.PIPE,
 
404
  # Register to receive moves from this game.
405
  connected.add(websocket)
406
  try:
407
+ base_path = os.path.join(os.getcwd(), 'projects', key,'your_project_name')
408
  mod_command = f'cd {base_path} && ls'
409
  process = await asyncio.create_subprocess_shell(
410
+ mod_command,
411
  # cwd=base_path,
412
  stdin=asyncio.subprocess.PIPE,
413
  stdout=asyncio.subprocess.PIPE,