Removed assert that isn't always true. Locations in a database from
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Sep 2004 10:15:58 +0000 (10:15 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 18 Sep 2004 10:15:58 +0000 (10:15 +0000)
another platform may have path separators not equal to os.path.sep.

src/lib/kofoto/imagecache.py

index 0cbdfd0..6ade50c 100644 (file)
@@ -127,7 +127,6 @@ class ImageCache:
     def _getCachedImagePath(self, location, mtime, width, height,
                             orientation):
         drive, drivelessPath = os.path.splitdrive(location)
-        assert drivelessPath.startswith(os.path.sep), drivelessPath
         directory, filename = os.path.split(drivelessPath[1:])
         if drive:
             directory = os.path.join(drive[0], directory)