##// END OF EJS Templates
windows: add win32com.shell to demandimport ignore list...
windows: add win32com.shell to demandimport ignore list Module 'appdirs' tries to import win32com.shell (and catch ImportError as an indication of failure) to check whether some further functionality should be implemented one or another way [1]. Of course, demandimport lets it down, so if we want appdirs to work we have to add it to demandimport's ignore list. The reason we want appdirs to work is becuase it is used by setuptools [2] to determine egg cache location. Only fairly recent versions of setuptools depend on this so people don't see this often. [1] https://github.com/ActiveState/appdirs/blob/master/appdirs.py#L560 [2] https://github.com/pypa/setuptools/blob/aae0a928119d2a178882c32bded02270e30d0273/pkg_resources/__init__.py#L1369

File last commit:

r29485:6a98f940 default
r31990:3e03a4b9 default
Show More
readlink.py
17 lines | 324 B | text/x-python | PythonLexer
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 #!/usr/bin/env python
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 from __future__ import absolute_import, print_function
timeless
readlink: use print_function
r29175
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 import errno
import os
import sys
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
for f in sys.argv[1:]:
try:
timeless
readlink: use print_function
r29175 print(f, '->', os.readlink(f))
Gregory Szorc
global: mass rewrite to use modern exception syntax...
r25660 except OSError as err:
Matt Mackall
many, many trivial check-code fixups
r10282 if err.errno != errno.EINVAL:
raise
timeless
readlink: use print_function
r29175 print(f, '->', f, 'not a symlink')
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
sys.exit(0)