Mercurial > piecrust2
comparison piecrust/baking/single.py @ 286:a2d283d1033d
tests: Fixes for running on Windows.
Mostly about those damn backslashes, as usual.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Mar 2015 22:40:50 -0800 |
parents | 8c0c53a315ae |
children | eb958151c8dc |
comparison
equal
deleted
inserted
replaced
285:6e9b5530306e | 286:a2d283d1033d |
---|---|
148 do_bake = True | 148 do_bake = True |
149 if not force_this: | 149 if not force_this: |
150 try: | 150 try: |
151 in_path_time = record_entry.path_mtime | 151 in_path_time = record_entry.path_mtime |
152 out_path_time = os.path.getmtime(out_path) | 152 out_path_time = os.path.getmtime(out_path) |
153 if out_path_time > in_path_time: | 153 if out_path_time >= in_path_time: |
154 do_bake = False | 154 do_bake = False |
155 except OSError: | 155 except OSError: |
156 # File doesn't exist, we'll need to bake. | 156 # File doesn't exist, we'll need to bake. |
157 pass | 157 pass |
158 | 158 |