Simon Stolarczyk commited on
Commit
f19aeec
1 Parent(s): fad0f53

Trim the bin spill.

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +12 -11
  2. app.py +12 -11
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -15,23 +15,24 @@ print(os.getcwd())
15
  # print(os.listdir('../.local')) # ['bin', 'lib', 'etc', 'share']
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
- stdout = result.stdout
21
- paths = stdout.decode('utf-8').strip().split(':')
22
 
23
- from pathlib import Path
 
 
 
 
24
 
25
- paths = [Path(path) for path in paths]
26
- for path in paths:
27
- print(path)
28
- print(os.listdir(path))
29
- print('-'*10)
30
 
31
  # subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
32
  subprocess.run(['cat /home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
33
 
34
- subprocess.run(['apt-get install fluidsynth'], shell=True)
35
 
36
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
37
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
 
15
  # print(os.listdir('../.local')) # ['bin', 'lib', 'etc', 'share']
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
 
20
+ # result = subprocess.run(['echo $PATH'], capture_output=True, shell=True)
21
+ # stdout = result.stdout
22
+ # paths = stdout.decode('utf-8').strip().split(':')
23
+
24
+ # from pathlib import Path
25
 
26
+ # paths = [Path(path) for path in paths]
27
+ # for path in paths:
28
+ # print(path)
29
+ # print(os.listdir(path))
30
+ # print('-'*10)
31
 
32
  # subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
33
  subprocess.run(['cat /home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
34
 
35
+ subprocess.run(['sudo apt-get install fluidsynth'], shell=True)
36
 
37
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
38
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
app.py CHANGED
@@ -15,23 +15,24 @@ print(os.getcwd())
15
  # print(os.listdir('../.local')) # ['bin', 'lib', 'etc', 'share']
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
- stdout = result.stdout
21
- paths = stdout.decode('utf-8').strip().split(':')
22
 
23
- from pathlib import Path
 
 
 
 
24
 
25
- paths = [Path(path) for path in paths]
26
- for path in paths:
27
- print(path)
28
- print(os.listdir(path))
29
- print('-'*10)
30
 
31
  # subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
32
  subprocess.run(['cat /home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
33
 
34
- subprocess.run(['apt-get install fluidsynth'], shell=True)
35
 
36
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
37
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
 
15
  # print(os.listdir('../.local')) # ['bin', 'lib', 'etc', 'share']
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
 
20
+ # result = subprocess.run(['echo $PATH'], capture_output=True, shell=True)
21
+ # stdout = result.stdout
22
+ # paths = stdout.decode('utf-8').strip().split(':')
23
+
24
+ # from pathlib import Path
25
 
26
+ # paths = [Path(path) for path in paths]
27
+ # for path in paths:
28
+ # print(path)
29
+ # print(os.listdir(path))
30
+ # print('-'*10)
31
 
32
  # subprocess.run(['/home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
33
  subprocess.run(['cat /home/user/.local/bin/install_fluidsynth_with_soundfonts_osx.sh'], shell=True)
34
 
35
+ subprocess.run(['sudo apt-get install fluidsynth'], shell=True)
36
 
37
  # subprocess.run(['PATH=$PATH:~/opt/bin'])
38
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])