Skip to content

Instantly share code, notes, and snippets.

@jezdez
Created December 27, 2010 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezdez/d2b873845d5a49627f8e to your computer and use it in GitHub Desktop.
Save jezdez/d2b873845d5a49627f8e to your computer and use it in GitHub Desktop.
diff --git a/django/contrib/staticfiles/finders.py b/django/contrib/staticfiles/finders.py
index ca0a248..14c1bc2 100644
--- a/django/contrib/staticfiles/finders.py
+++ b/django/contrib/staticfiles/finders.py
@@ -79,7 +79,7 @@ class FileSystemFinder(BaseFinder):
absolute path (or ``None`` if no match).
"""
if prefix:
- prefix = '%s/' % prefix
+ prefix = '%s%s' % (prefix, os.sep)
if not path.startswith(prefix):
return None
path = path[len(prefix):]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment