Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,7 @@ async def wirte_file(websocket, key,project_name, path, content, connected):
|
|
150 |
|
151 |
async def execute_command(websocket, key,project_name, command, connected):
|
152 |
base_path = os.path.join(os.getcwd(), 'projects', key,project_name)
|
153 |
-
mod_command = f'cd {base_path}
|
154 |
|
155 |
try:
|
156 |
process = await asyncio.create_subprocess_shell(
|
@@ -405,7 +405,7 @@ async def join(websocket, key):
|
|
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} &&
|
409 |
process = await asyncio.create_subprocess_shell(
|
410 |
mod_command,
|
411 |
# cwd=base_path,
|
|
|
150 |
|
151 |
async def execute_command(websocket, key,project_name, command, connected):
|
152 |
base_path = os.path.join(os.getcwd(), 'projects', key,project_name)
|
153 |
+
mod_command = f'cd {base_path}&& {command}'
|
154 |
|
155 |
try:
|
156 |
process = await asyncio.create_subprocess_shell(
|
|
|
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,
|