Mercurial > piecrust2
diff piecrust/processing/base.py @ 11:617191dec18e
Fixes for Windows, make `findPagePath` return a ref path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 18 Aug 2014 16:47:44 -0700 |
parents | 474c9882decf |
children | df790a827d38 |
line wrap: on
line diff
--- a/piecrust/processing/base.py Sun Aug 17 21:18:48 2014 -0700 +++ b/piecrust/processing/base.py Mon Aug 18 16:47:44 2014 -0700 @@ -329,6 +329,8 @@ def re_matchany(filename, patterns): + # skip patterns use a forward slash regardless of the platform. + filename = filename.replace('\\', '/') for pattern in patterns: if pattern.match(filename): return True