Commit dfd4cbb3 by Timothée Peignier

Merge pull request #145 from idanz/patch-2

Fixed construct_asset_path for windows
parents 0f1aa359 59804a70
......@@ -145,7 +145,7 @@ class Compressor(object):
def construct_asset_path(self, asset_path, css_path, output_filename, variant=None):
"""Return a rewritten asset URL for a stylesheet"""
public_path = self.absolute_path(asset_path, posixpath.dirname(css_path))
public_path = self.absolute_path(asset_path, os.path.dirname(css_path).replace('\\','/'))
if self.embeddable(public_path, variant):
return "__EMBED__%s" % public_path
if not posixpath.isabs(asset_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment