try to dlopen any file in datasources dir
This commit is contained in:
parent
2a4f25706b
commit
e9fff475be
1 changed files with 14 additions and 24 deletions
|
@ -98,15 +98,6 @@ namespace mapnik
|
|||
if (!is_directory( *itr ))
|
||||
{
|
||||
std::string file_name(str+"/"+itr->leaf());
|
||||
|
||||
if (file_name=="." || file_name=="..")
|
||||
continue;
|
||||
std::string::size_type len=file_name.size();
|
||||
|
||||
if (len>3 &&
|
||||
file_name[len-1]=='o' &&
|
||||
file_name[len-2]=='s')
|
||||
{
|
||||
lt_dlhandle module=lt_dlopenext(file_name.c_str());
|
||||
if (module)
|
||||
{
|
||||
|
@ -123,7 +114,6 @@ namespace mapnik
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue