diff --git a/synccovers.py b/synccovers.py index 64ef2ce..0f65a84 100644 --- a/synccovers.py +++ b/synccovers.py @@ -58,6 +58,9 @@ def process_folder(inputdir, width, height, stretch, verbose): if os.path.isdir(kindle_dir): print('Found Kindle thumbnails directory "{}"'.format(kindle_dir)) break + elif os.path.samefile(inputdir, head): + # Possibly trailing path separator, try again, without it + tail = head else: print('ERROR: unable to find Kindle system directory along the path "{0}"'.format(inputdir)) sys.exit(-1) diff --git a/version.py b/version.py index ef57399..1eb1a74 100644 --- a/version.py +++ b/version.py @@ -4,4 +4,4 @@ WINDOWS = platform.system().lower() == "windows" -VERSION = u'3.6.28' +VERSION = u'3.6.29'