diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 42641e8c3..67d2fbb86 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -83,6 +83,9 @@ namespace { } std::string getAddonInfo(const std::string &fileName, const std::string &exename) { + if (fileName.find(".") == std::string::npos) + return getAddonInfo(fileName + ".py", exename); + if (endsWith(fileName, ".py", 3)) { scriptFile = getFullPath(fileName, exename); if (scriptFile.empty())