mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-05 03:30:20 -05:00
...
This commit is contained in:
parent
30e69528a9
commit
13deb9bab0
@ -344,7 +344,7 @@ class Container(object): # {{{
|
||||
return self.opf.xpath(expr, namespaces=OPF_NAMESPACES)
|
||||
|
||||
def has_name(self, name):
|
||||
return name in self.name_path_map
|
||||
return name and name in self.name_path_map
|
||||
|
||||
def relpath(self, path, base=None):
|
||||
'''Convert an absolute path (with os separators) to a path relative to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user