Ramesh-vani commited on
Commit
9424e52
·
verified ·
1 Parent(s): 64f913a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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} && cd {project_name} && {command}'
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} && cd your_project_name && ls'
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,