mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3320 (Long Folder Names on Kindle)
This commit is contained in:
parent
a3bded09d1
commit
bfb4199452
@ -63,6 +63,8 @@ def shorten_components_to(length, components):
|
|||||||
if not r:
|
if not r:
|
||||||
r = x.strip()[0] if x.strip() else 'x'
|
r = x.strip()[0] if x.strip() else 'x'
|
||||||
ans.append(r)
|
ans.append(r)
|
||||||
|
if len(os.sep.join(ans)) > length:
|
||||||
|
return shorten_components_to(length, ans)
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
def find_executable_in_path(name, path=None):
|
def find_executable_in_path(name, path=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user