comparison 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
comparison
equal deleted inserted replaced
1111:98c7dd6ea4ac 1112:a3dec0fbd9ce
27 return 27 return
28 28
29 if self._conf is True: 29 if self._conf is True:
30 self._conf = {} 30 self._conf = {}
31 31
32 self._conf.setdefault('bin', 'browserify') 32 bin_name = 'browserify'
33 if platform.system() == 'Windows':
34 bin_name += '.cmd'
35 self._conf.setdefault('bin', bin_name)
33 36
34 def onPipelineStart(self, ctx): 37 def onPipelineStart(self, ctx):
35 self._tmp_dir = ctx.tmp_dir 38 self._tmp_dir = ctx.tmp_dir
36 39
37 def matches(self, path): 40 def matches(self, path):