Ramesh-vani commited on
Commit
a6fbfdf
·
verified ·
1 Parent(s): d912429

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -314,8 +314,9 @@ async def handle_user_input(websocket,key, process, connected):
314
  try:
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(
@@ -634,8 +635,9 @@ async def exe(websocket,connected,key):
634
  try:
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(
 
314
  try:
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
+ print(mod_command)
320
 
321
  try:
322
  process = await asyncio.create_subprocess_shell(
 
635
  try:
636
  # await execute_command(websocket, key,event["project_name"], event["command"]["command"], connected)
637
  # base_path = os.path.join(os.getcwd(), 'projects', key,event["project_name"])
638
+ print(base_path)
639
  mod_command = f'cd {base_path} && {event["command"]["command"]}'
640
+ print(mod_command)
641
 
642
  try:
643
  process = await asyncio.create_subprocess_shell(