Two passes are not allowed to have the same filename

This commit is contained in:
Benedikt Tutzer 2018-08-20 15:28:09 +02:00
parent d41c68ee5a
commit d87c7df27f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ void load_plugin(std::string filename, std::vector<std::string> aliases)
if (filename.find('/') == std::string::npos)
filename = "./" + filename;
if (!loaded_plugins.count(filename)) {
if (!loaded_plugins.count(filename) && !loaded_python_plugins.count(filename)) {
#ifdef WITH_PYTHON
if(boost::algorithm::ends_with(filename, ".py"))