On Sunday November 25, 2001 08:04 pm, James R. Phillips wrote:
> I changed filenameForKey() in SessionFileStore.py to use os.sep
> instead of the original hard-coded forward slash as in:
> def filenameForKey(self, key):
> return self._sessionDir + os.sep + '%s.ses' % key
> but since the original worked for me on both Windows NT
> and Linux I'm not sure whether this is a bug or not. On
> Windows the path separator is \ and on Linux it is /, I
> changed it just to be safe. I have not checked to see if
> the other WebKit directory names have the hard-coded forward
> slash or not.
On Windows, you can use either forward or backward slashes in almost all
places. So it's not really much of a bug to hard-code forward slashes.
Actually, I would use this instead:
return os.path.join(self._sessionDir, '%s.ses' % key)