On Sunday 25 November 2001 05:04 pm, James R. Phillips wrote: > All, > > 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. > > Randy Phillips
Forward slashes in pathnames work on all platforms (for a Python program). This begs the question if the conventional wisdom of using os.path.join and os.sep is worthwhile. -Chuck _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
