PhoenixStormJr commited on
Commit
2d67d33
1 Parent(s): d0f9afc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def greet(command):
6
  commandList = command.split(' ')
7
  if(commandList[0] == "cd"):
8
  os.chdir(commandList[1])
9
- output = subprocess.run([pwd], stdout=subprocess.PIPE).stdout.decode('utf-8')
10
  return f"{command}: \n {output}"
11
  else:
12
  output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')
 
6
  commandList = command.split(' ')
7
  if(commandList[0] == "cd"):
8
  os.chdir(commandList[1])
9
+ output = subprocess.run(['pwd'], stdout=subprocess.PIPE).stdout.decode('utf-8')
10
  return f"{command}: \n {output}"
11
  else:
12
  output = subprocess.run(commandList, stdout=subprocess.PIPE).stdout.decode('utf-8')