changeset 529:6f1f45fb7790

cm: Re-fix Mac file-system wrappers. Man, I shouldn't write code with a headache.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 28 Jul 2015 22:16:22 -0700
parents cf3218766fe2
children 1f37f66204b8
files piecrust/osutil.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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