aboutsummaryrefslogtreecommitdiff
path: root/xboomx/bin/xboomx_path.py
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2014-09-02 11:27:50 +0200
committerVictor Häggqvist <[email protected]>2014-09-02 11:27:50 +0200
commitbcbd5bb12b3a1f89948d21a7a9bc0f056db73f38 (patch)
treef95b967cd8dec52fadba96c85cf03a635bb272f3 /xboomx/bin/xboomx_path.py
--status
Diffstat (limited to 'xboomx/bin/xboomx_path.py')
-rwxr-xr-xxboomx/bin/xboomx_path.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/xboomx/bin/xboomx_path.py b/xboomx/bin/xboomx_path.py
new file mode 100755
index 0000000..67a1cb1
--- /dev/null
+++ b/xboomx/bin/xboomx_path.py
@@ -0,0 +1,11 @@
+#!/usr/bin/python
+
+import os
+
+pathes = os.environ['PATH'].split(':')
+
+
+for path in pathes:
+ if os.path.isdir(path):
+ for f in os.listdir(path):
+ print f