##// END OF EJS Templates
tests: make test-pathencode use absolute_import
tests: make test-pathencode use absolute_import

File last commit:

r25660:328739ea default
r28928:59481bfd default
Show More
readlink.py
13 lines | 245 B | text/x-python | PythonLexer
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError as err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)