Skip to content

Commit

Permalink
Library: removed "one path down" from library lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jul 1, 2024
1 parent 29adee8 commit 8fb5a1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ Library::Error Library::load(const char exename[], const char path[], bool debug
if (exename) {
const std::string exepath(Path::fromNativeSeparators(Path::getPathFromFilename(Path::getCurrentExecutablePath(exename))));
cfgfolders.push_back(exepath + "cfg");
cfgfolders.push_back(exepath + "../cfg");
cfgfolders.push_back(exepath);
}

Expand Down
4 changes: 0 additions & 4 deletions test/cli/other_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
def __remove_std_lookup_log(l : list, exepath):
l.remove("looking for library 'std.cfg'")
l.remove("looking for library '{}/std.cfg'".format(exepath))
l.remove("looking for library '{}/../cfg/std.cfg'".format(exepath))
l.remove("looking for library '{}/cfg/std.cfg'".format(exepath))
return l

Expand Down Expand Up @@ -1633,7 +1632,6 @@ def test_lib_lookup(tmpdir):
"looking for library 'gnu'",
"looking for library 'gnu.cfg'",
"looking for library '{}/gnu.cfg'".format(exepath),
"looking for library '{}/../cfg/gnu.cfg'".format(exepath),
"looking for library '{}/cfg/gnu.cfg'".format(exepath),
'Checking {} ...'.format(test_file)
]
Expand All @@ -1655,7 +1653,6 @@ def test_lib_lookup_notfound(tmpdir):
"looking for library 'none'",
"looking for library 'none.cfg'",
"looking for library '{}/none.cfg'".format(exepath),
"looking for library '{}/../cfg/none.cfg'".format(exepath),
"looking for library '{}/cfg/none.cfg'".format(exepath),
"library not found: 'none'",
"cppcheck: Failed to load library configuration file 'none'. File not found"
Expand Down Expand Up @@ -1728,7 +1725,6 @@ def test_lib_lookup_nofile(tmpdir):
"looking for library 'gtk'",
"looking for library 'gtk.cfg'",
"looking for library '{}/gtk.cfg'".format(exepath),
"looking for library '{}/../cfg/gtk.cfg'".format(exepath),
"looking for library '{}/cfg/gtk.cfg'".format(exepath),
'Checking {} ...'.format(test_file)
]

0 comments on commit 8fb5a1f

Please sign in to comment.