fix bug showing up on windows

This commit is contained in:
holger krekel 2010-11-07 01:13:40 +01:00
parent d9ad2e7cce
commit 9bed4bb31c
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ class FSCollector(Collector):
return "."
relpath = self.collection.fspath.bestrelpath(self.fspath)
if os.sep != "/":
relpath = str(path).replace(os.sep, "/")
relpath = relpath.replace(os.sep, "/")
return relpath
class File(FSCollector):