Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
830:a12ad254176e | 831:18978cf6d1ac |
---|---|
92 | 92 |
93 cpi = self._page.app.env.exec_info_stack.current_page_info | 93 cpi = self._page.app.env.exec_info_stack.current_page_info |
94 if cpi is not None: | 94 if cpi is not None: |
95 cpi.render_ctx.current_pass_info.used_assets = True | 95 cpi.render_ctx.current_pass_info.used_assets = True |
96 | 96 |
97 def copyAssets(self, page, dest_dir): | 97 def copyAssets(self, dest_dir): |
98 page_pathname, _ = os.path.splitext(page.path) | 98 page_pathname, _ = os.path.splitext(self._page.path) |
99 in_assets_dir = page_pathname + ASSET_DIR_SUFFIX | 99 in_assets_dir = page_pathname + ASSET_DIR_SUFFIX |
100 for fn in os.listdir(in_assets_dir): | 100 for fn in os.listdir(in_assets_dir): |
101 full_fn = os.path.join(in_assets_dir, fn) | 101 full_fn = os.path.join(in_assets_dir, fn) |
102 if os.path.isfile(full_fn): | 102 if os.path.isfile(full_fn): |
103 dest_ap = os.path.join(dest_dir, fn) | 103 dest_ap = os.path.join(dest_dir, fn) |