Skip to content

Commit

Permalink
Let's not forget about our YUI brethren
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Sep 23, 2011
1 parent c998601 commit 42e7336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jingo_minify/management/commands/compress_assets.py
Expand Up @@ -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 ''

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 42e7336

Please sign in to comment.