Skip to content

Commit

Permalink
Win32 hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jun 8, 2024
1 parent 41a7e1a commit bf45886
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ubelt/util_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@ def _dirstats(dpath=None): # nocover
# I get it, they are probably broken junctions, but common
# That should probably be 00011 not 00000
path = util_colors.color_text(path, 'red')
elif ELFDJ == [1, 1, 0, 1, 1]:
# Agg, on windows pypy, it looks like junctions and links are
# harder to distinguish. See
# https://github.com/pypy/pypy/issues/4976
path = util_colors.color_text(path, 'yellow')
else:
print('dpath = {!r}'.format(dpath))
print('path = {!r}'.format(path))
Expand Down

0 comments on commit bf45886

Please sign in to comment.