diff options
Diffstat (limited to 'django_pyscss/utils.py')
-rw-r--r-- | django_pyscss/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django_pyscss/utils.py b/django_pyscss/utils.py index e8d45ce..8ff5ad9 100644 --- a/django_pyscss/utils.py +++ b/django_pyscss/utils.py @@ -1,4 +1,5 @@ import fnmatch +import os from django.contrib.staticfiles import finders @@ -12,5 +13,6 @@ def find_all_files(glob): """ for finder in finders.get_finders(): for path, storage in finder.list([]): - if fnmatch.fnmatchcase(path, glob): + if fnmatch.fnmatchcase(os.path.join(storage.prefix or '', path), + glob): yield path, storage |