##// END OF EJS Templates
shelve: refactor directory name into constant...
shelve: refactor directory name into constant Shelve directory name extracted into constant to avoid typos/duplication.

File last commit:

r25660:328739ea default
r28862:39130afc 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)