Permalink
Browse files

Merge branch 'master' of http://github.com/cheshire/django-css into c…

…heshire-master
  • Loading branch information...
dziegler committed Oct 25, 2010
2 parents d325397 + 26b59f6 commit 91bf4b460034ded15e831da2fe1c468ad34150a9
Showing with 2 additions and 1 deletion.
  1. +2 −1 compressor/__init__.py
View
@@ -64,9 +64,10 @@ def split_contents(self):
def get_filename(self, url):
if not url.startswith(self.media_url):
raise UncompressableFileError('"%s" is not in COMPRESS_URL ("%s") and can not be compressed' % (url, self.media_url))
+ url = os.path.realpath(url)
basename = url[len(self.media_url):]
filename = os.path.join(settings.MEDIA_ROOT, basename)
- return filename
+ return os.path.realpath(filename)
@property
def mtimes(self):

0 comments on commit 91bf4b4

Please sign in to comment.