From 075ca4e603c9aa2b2b64b9f38fb3d40320e34d57 Mon Sep 17 00:00:00 2001 From: Kolenka Date: Tue, 11 Oct 2011 21:09:17 -0700 Subject: [PATCH] Sony T1: Fix behavior which caused Windows path seps to leak into Calibre --- src/calibre/devices/prst1/driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index 578a9bc65c..3d71bae323 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -256,8 +256,7 @@ class PRST1(USBMS): newmi = book # Get Metadata We Want - # Make sure lpath uses Unix-style strings - lpath = book.lpath.replace('\\', '/') + lpath = book.lpath try: if opts.use_author_sort: if newmi.author_sort : @@ -432,6 +431,7 @@ class PRST1(USBMS): source_id = 1 metadata.lpath = filepath.partition(prefix)[2] + metadata.lpath = metadata.lpath.replace('\\', '/') dbpath = self.normalize_path(prefix + DBPATH) debug_print("SQLite DB Path: " + dbpath)