Mercurial > piecrust2
view tests/pathutil.py @ 570:7dabfdd056a1
serve: Fix corner cases where the pipeline doesn't run correctly.
* When `chef serve` is run before the `assets` folder is created, monitor that
folder suddenly appearing and rebuild the pipeline.
* Do the same when the `config.yml` file has changed.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 31 Oct 2015 00:03:32 -0700 |
parents | a2d283d1033d |
children |
line wrap: on
line source
import os def slashfix(path): if path is None: return None if isinstance(path, str): return path.replace('/', os.sep) fixed = [] for p in path: fixed.append(p.replace('/', os.sep)) return fixed