mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
...
This commit is contained in:
parent
9ea3b6b398
commit
1326dfe243
1 changed files with 2 additions and 2 deletions
|
|
@ -317,8 +317,8 @@ def __init__(self, library_path, default_prefs=None, read_only=False,
|
|||
|
||||
if iswindows and len(self.library_path) + 4*self.PATH_LIMIT + 10 > 259:
|
||||
raise ValueError(_(
|
||||
'Path to library (%s) too long. Must be less than'
|
||||
' %d characters.')%(self.library_path, 259-4*self.PATH_LIMIT-10))
|
||||
'Path to library ({0}) too long. Must be less than'
|
||||
' {1} characters.').format(self.library_path, 259-4*self.PATH_LIMIT-10))
|
||||
exists = self._exists = os.path.exists(self.dbpath)
|
||||
if not exists:
|
||||
# Be more strict when creating new libraries as the old calculation
|
||||
|
|
|
|||
Loading…
Reference in a new issue