Mercurial > piecrust2
view tests/pathutil.py @ 835:cc9593b9bcbf
Land assets in the correct directory for pages with no pretty_urls override
author | Ben Artin <ben@artins.org> |
---|---|
date | Tue, 03 Jan 2017 02:34:43 -0500 |
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