Mercurial > piecrust2
diff piecrust/data/assetor.py @ 831:18978cf6d1ac
Removed pointless page argument from copyAssets
author | Ben Artin <ben@artins.org> |
---|---|
date | Wed, 11 Jan 2017 23:58:12 -0500 |
parents | 570f89414b2c |
children | 61878590bf96 |
line wrap: on
line diff
--- a/piecrust/data/assetor.py Wed Jan 11 23:56:51 2017 -0500 +++ b/piecrust/data/assetor.py Wed Jan 11 23:58:12 2017 -0500 @@ -94,8 +94,8 @@ if cpi is not None: cpi.render_ctx.current_pass_info.used_assets = True - def copyAssets(self, page, dest_dir): - page_pathname, _ = os.path.splitext(page.path) + def copyAssets(self, dest_dir): + page_pathname, _ = os.path.splitext(self._page.path) in_assets_dir = page_pathname + ASSET_DIR_SUFFIX for fn in os.listdir(in_assets_dir): full_fn = os.path.join(in_assets_dir, fn)