Permalink
Browse files

Let's not forget about our YUI brethren

  • Loading branch information...
1 parent c998601 commit 42e733627968adf1c4eb671352dc2396c1d54572 @gkoberger gkoberger committed Sep 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jingo_minify/management/commands/compress_assets.py
@@ -56,7 +56,7 @@ def handle(self, **options):
jar_path = (os.path.dirname(__file__), '..', '..', 'bin',
'yuicompressor-2.4.4.jar')
- path_to_jar = os.path.realpath(os.path.join(*jar_path))
+ self.path_to_jar = os.path.realpath(os.path.join(*jar_path))
self.v = '-v' if options.get('verbosity', False) == '2' else ''
@@ -157,7 +157,7 @@ def _minify(self, ftype, file_in, file_out):
shell=True, stdout=PIPE)
else:
o = {'method': 'YUI Compressor', 'bin': settings.JAVA_BIN}
- variables = (o['bin'], path_to_jar, self.v, file_in, file_out)
+ variables = (o['bin'], self.path_to_jar, self.v, file_in, file_out)
call("%s -jar %s %s %s -o %s" % variables,
shell=True, stdout=PIPE)

0 comments on commit 42e7336

Please sign in to comment.