Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Ignore trailing path separator in synccovers
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jul 21, 2017
1 parent db06292 commit fe6aa31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions synccovers.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion version.py
Expand Up @@ -4,4 +4,4 @@

WINDOWS = platform.system().lower() == "windows"

VERSION = u'3.6.28'
VERSION = u'3.6.29'

0 comments on commit fe6aa31

Please sign in to comment.