Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -315,7 +315,7 @@ async def handle_user_input(websocket,key, process, connected):
|
|
315 |
# await execute_command(websocket, key,event["project_name"], event["command"]["command"], connected)
|
316 |
# base_path = os.path.join(os.getcwd(), 'projects', key,event["project_name"])
|
317 |
# print(base_path)
|
318 |
-
mod_command = f'cd {base_path}&& {event["command"]["command"]}'
|
319 |
|
320 |
try:
|
321 |
process = await asyncio.create_subprocess_shell(
|
@@ -635,7 +635,7 @@ async def exe(websocket,connected,key):
|
|
635 |
# await execute_command(websocket, key,event["project_name"], event["command"]["command"], connected)
|
636 |
# base_path = os.path.join(os.getcwd(), 'projects', key,event["project_name"])
|
637 |
# print(base_path)
|
638 |
-
mod_command = f'cd {base_path}&& {event["command"]["command"]}'
|
639 |
|
640 |
try:
|
641 |
process = await asyncio.create_subprocess_shell(
|
|
|
315 |
# await execute_command(websocket, key,event["project_name"], event["command"]["command"], connected)
|
316 |
# base_path = os.path.join(os.getcwd(), 'projects', key,event["project_name"])
|
317 |
# print(base_path)
|
318 |
+
mod_command = f'cd {base_path} && {event["command"]["command"]}'
|
319 |
|
320 |
try:
|
321 |
process = await asyncio.create_subprocess_shell(
|
|
|
635 |
# await execute_command(websocket, key,event["project_name"], event["command"]["command"], connected)
|
636 |
# base_path = os.path.join(os.getcwd(), 'projects', key,event["project_name"])
|
637 |
# print(base_path)
|
638 |
+
mod_command = f'cd {base_path} && {event["command"]["command"]}'
|
639 |
|
640 |
try:
|
641 |
process = await asyncio.create_subprocess_shell(
|