Skip to content

Commit

Permalink
set process in jade filter every setup()
Browse files Browse the repository at this point in the history
as per https://github.com/miracle2k/webassets/blob/master/src/webassets/filter/__init__.py#L246:

def setup(self):
...
"Note: This may be called multiple times if one filter instance is used with different asset environment instances."
...

If setup is called multiple times, this change means the Jade Filter object will have the same arguments to run every time.
  • Loading branch information
matanshavit committed Apr 10, 2016
1 parent f710ac9 commit 1d13b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webassets/filter/jade.py
Expand Up @@ -73,7 +73,7 @@ def setup(self):
"""
super(Jade, self).setup()

self.argv.append(self.jade or 'jade')
self.argv = [self.jade or 'jade']
self.argv.append('--client')

if self.jade_no_debug:
Expand Down

0 comments on commit 1d13b6c

Please sign in to comment.