# HG changeset patch # User Ludovic Chabant # Date 1438146982 25200 # Node ID 6f1f45fb77906610939b3d6b8b016b3cb2cec736 # Parent cf3218766fe2dc0138c0a5c6c4a0c2ca0a0f3618 cm: Re-fix Mac file-system wrappers. Man, I shouldn't write code with a headache. diff -r cf3218766fe2 -r 6f1f45fb7790 piecrust/osutil.py --- a/piecrust/osutil.py Tue Jul 28 22:09:13 2015 -0700 +++ b/piecrust/osutil.py Tue Jul 28 22:16:22 2015 -0700 @@ -24,7 +24,7 @@ def _glob(pathname): pathname = _to_osx_fs(pathname) - matches = _glob.glob(pathname) + matches = _system_glob.glob(pathname) return list(map(_from_osx_fs, matches)) def _from_osx_fs(s): @@ -33,6 +33,8 @@ def _to_osx_fs(s): return unicodedata.ucd_3_2_0.normalize('NFD', s) + global walk, listdir, glob + walk = _walk listdir = _listdir glob = _glob