From bf45886bbe2c8bc583f2a6218f9bd4f6c97f93cc Mon Sep 17 00:00:00 2001 From: joncrall Date: Sat, 8 Jun 2024 18:45:55 -0400 Subject: [PATCH] Win32 hacks --- ubelt/util_links.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ubelt/util_links.py b/ubelt/util_links.py index a5c36254..af4f9d86 100644 --- a/ubelt/util_links.py +++ b/ubelt/util_links.py @@ -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))