summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/lll.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/lll.py')
-rwxr-xr-xTools/scripts/lll.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tools/scripts/lll.py b/Tools/scripts/lll.py
index 509936d..6dd68ba 100755
--- a/Tools/scripts/lll.py
+++ b/Tools/scripts/lll.py
@@ -5,17 +5,17 @@
# No recursion.
# (This is a totally different program from "findsymlinks.py"!)
-import sys, posix, path
+import sys, os
def lll(dirname):
- for name in posix.listdir(dirname):
- if name not in ['.', '..']:
- full = path.join(dirname, name)
- if path.islink(full):
- print name, '->', posix.readlink(full)
+ for name in os.listdir(dirname):
+ if name not in (os.curdir, os.pardir):
+ full = os.path.join(dirname, name)
+ if os.path.islink(full):
+ print name, '->', os.readlink(full)
args = sys.argv[1:]
-if not args: args = ['.']
+if not args: args = [os.curdir]
first = 1
for arg in args:
if len(args) > 1: