PhoenixStormJr commited on
Commit
6290b91
1 Parent(s): 729cd7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,13 +10,13 @@ if(len(command) > 0):
10
  if(commandList[0] == "cd"):
11
  os.chdir(commandList[1])
12
  output = subprocess.run(['pwd'], stdout=subprocess.PIPE).stdout.decode('utf-8')
13
- st.write(f"{command}: \n {output}")
14
  outputList = output.split("\n")
15
  for out in outputList:
16
  st.write(f"{out}")
17
  else:
18
  output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')
19
- st.write(f"{command}: \n {output}")
20
  outputList = output.split("\n")
21
  for out in outputList:
22
  st.write(f"{out}")
 
10
  if(commandList[0] == "cd"):
11
  os.chdir(commandList[1])
12
  output = subprocess.run(['pwd'], stdout=subprocess.PIPE).stdout.decode('utf-8')
13
+ st.write(f"{command}:")
14
  outputList = output.split("\n")
15
  for out in outputList:
16
  st.write(f"{out}")
17
  else:
18
  output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')
19
+ st.write(f"{command}:")
20
  outputList = output.split("\n")
21
  for out in outputList:
22
  st.write(f"{out}")