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

Look at all my biiins.

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +10 -1
  2. app.py +10 -1
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -17,7 +17,16 @@ print(os.getcwd())
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'])
 
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(['PATH=$PATH:~/opt/bin'])
32
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])
app.py CHANGED
@@ -17,7 +17,16 @@ print(os.getcwd())
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'])
 
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(['PATH=$PATH:~/opt/bin'])
32
  # subprocess.run(['PATH=$PATH:~/opt/bin/fluidsynth'])