Simon Stolarczyk commited on
Commit
d259f0f
1 Parent(s): f1ad0c8

Accurately capture output.

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +3 -2
  2. app.py +3 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -16,11 +16,12 @@ print(os.getcwd())
16
  # print(os.listdir('../..')) # ['user']
17
  # print(os.listdir('../../..')) # ['bin', 'boot', 'dev', 'etc', 'home', 'lib', 'lib64', 'media', 'mnt', 'opt', 'proc', 'root', 'run', 'sbin', 'srv', 'sys', 'tmp', 'usr', 'var', '.dockerenv']
18
  print(os.listdir('../../../bin'))
19
- subprocess.run(['echo $PATH'], capture_output=True, shell=True)
 
20
 
21
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
22
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
23
- subprocess.run(['fluidsynth'], shell=True)
24
 
25
  def process_midi(midi_file):
26
  name = Path(midi_file.name)
 
16
  # print(os.listdir('../..')) # ['user']
17
  # print(os.listdir('../../..')) # ['bin', 'boot', 'dev', 'etc', 'home', 'lib', 'lib64', 'media', 'mnt', 'opt', 'proc', 'root', 'run', 'sbin', 'srv', 'sys', 'tmp', 'usr', 'var', '.dockerenv']
18
  print(os.listdir('../../../bin'))
19
+ result = subprocess.run(['echo $PATH'], capture_output=True, shell=True)
20
+ print(result.stdout)
21
 
22
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
23
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
24
+ # subprocess.run(['fluidsynth'], shell=True)
25
 
26
  def process_midi(midi_file):
27
  name = Path(midi_file.name)
app.py CHANGED
@@ -16,11 +16,12 @@ print(os.getcwd())
16
  # print(os.listdir('../..')) # ['user']
17
  # print(os.listdir('../../..')) # ['bin', 'boot', 'dev', 'etc', 'home', 'lib', 'lib64', 'media', 'mnt', 'opt', 'proc', 'root', 'run', 'sbin', 'srv', 'sys', 'tmp', 'usr', 'var', '.dockerenv']
18
  print(os.listdir('../../../bin'))
19
- subprocess.run(['echo $PATH'], capture_output=True, shell=True)
 
20
 
21
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
22
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
23
- subprocess.run(['fluidsynth'], shell=True)
24
 
25
  def process_midi(midi_file):
26
  name = Path(midi_file.name)
 
16
  # print(os.listdir('../..')) # ['user']
17
  # print(os.listdir('../../..')) # ['bin', 'boot', 'dev', 'etc', 'home', 'lib', 'lib64', 'media', 'mnt', 'opt', 'proc', 'root', 'run', 'sbin', 'srv', 'sys', 'tmp', 'usr', 'var', '.dockerenv']
18
  print(os.listdir('../../../bin'))
19
+ result = subprocess.run(['echo $PATH'], capture_output=True, shell=True)
20
+ print(result.stdout)
21
 
22
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
23
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
24
+ # subprocess.run(['fluidsynth'], shell=True)
25
 
26
  def process_midi(midi_file):
27
  name = Path(midi_file.name)