mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 03:12:20 -04:00
The index path must be absolute.
This commit is contained in:
parent
422dde9ff2
commit
eb407956b9
@ -1072,7 +1072,10 @@ int main(int argc, char** argv)
|
||||
}
|
||||
}
|
||||
if (!indexPath.empty()) {
|
||||
manager.setBookIndex(library.getBooksIds()[0], indexPath);
|
||||
if (isRelativePath(indexPath)) {
|
||||
indexPath = computeAbsolutePath(indexPath, getCurrentDirectory());
|
||||
}
|
||||
library.getBookById(library.getBooksIds()[0]).setIndexPath(indexPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user