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

Add shell flag.

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -2
  2. app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -16,11 +16,11 @@ 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)
20
 
21
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
22
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
23
- # subprocess.run(['fluidsynth'])
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
+ 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)
app.py CHANGED
@@ -16,11 +16,11 @@ 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)
20
 
21
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
22
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
23
- # subprocess.run(['fluidsynth'])
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
+ 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)