Mercurial > piecrust2
diff piecrust/processing/browserify.py @ 1112:a3dec0fbd9ce
bake: Fix bug on Windows where shim scripts of NodeJS tools couldn't run.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 20 Feb 2018 22:15:57 -0800 |
parents | c2bfa1869f0d |
children |
line wrap: on
line diff
--- a/piecrust/processing/browserify.py Sun Feb 18 20:37:54 2018 -0800 +++ b/piecrust/processing/browserify.py Tue Feb 20 22:15:57 2018 -0800 @@ -29,7 +29,10 @@ if self._conf is True: self._conf = {} - self._conf.setdefault('bin', 'browserify') + bin_name = 'browserify' + if platform.system() == 'Windows': + bin_name += '.cmd' + self._conf.setdefault('bin', bin_name) def onPipelineStart(self, ctx): self._tmp_dir = ctx.tmp_dir