mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-23 03:52:35 -04:00
Merge pull request #104 from kiwix/library_relative_path
Relative paths are relative to current directory not executable.
This commit is contained in:
commit
05c734fc31
@ -920,9 +920,7 @@ int main(int argc, char** argv)
|
||||
try {
|
||||
string libraryPath
|
||||
= isRelativePath(*itr)
|
||||
? computeAbsolutePath(removeLastPathElement(
|
||||
getExecutablePath(), true, false),
|
||||
*itr)
|
||||
? computeAbsolutePath(getCurrentDirectory(), *itr)
|
||||
: *itr;
|
||||
retVal = libraryManager.readFile(libraryPath, true);
|
||||
} catch (...) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user