Skip to content

Commit

Permalink
Use env.resolver instead
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Sep 13, 2013
1 parent f5b711d commit 90bd620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/webassets/filter/less.py
Expand Up @@ -101,9 +101,7 @@ def input(self, in_, out, source_path, **kw):
if self.line_numbers:
args.append('--line-numbers=%s' % self.line_numbers)
if self.paths:
paths = [path if isabs(path)
else abspath(join(self.env.directory, path))
for path in self.paths]
paths = [path if isabs(path) else self.env.resolver.resolve_source(path) for path in self.paths]
args.append('--include-path={0}'.format(os.pathsep.join(paths)))
if self.extra_args:
args.extend(self.extra_args)
Expand Down

0 comments on commit 90bd620

Please sign in to comment.