Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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,
|