ldhldh commited on
Commit
547c2da
1 Parent(s): 5fa5383

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -12,6 +12,13 @@ from src.models import models
12
  import subprocess
13
 
14
  # 명령어 실행
 
 
 
 
 
 
 
15
  command = "apt-get install sox libsox-dev"
16
  process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17
 
 
12
  import subprocess
13
 
14
  # 명령어 실행
15
+ command = "apt-get update"
16
+ process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17
+
18
+ # 명령어 실행 결과 출력
19
+ stdout, stderr = process.communicate()
20
+ print(stdout, stderr)
21
+
22
  command = "apt-get install sox libsox-dev"
23
  process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
24