fixed path portability issue

This commit is contained in:
Artem Pavlenko 2005-09-09 09:38:37 +00:00
parent 6750307a46
commit 70f79a3e19

View file

@ -95,10 +95,9 @@ namespace mapnik
{
for (filesystem::directory_iterator itr(path);itr!=end_itr;++itr )
{
if (!is_directory( *itr ))
if (!is_directory( *itr ) && itr->leaf()[0]!='.')
{
std::string file_name(str+"/"+itr->leaf());
lt_dlhandle module=lt_dlopenext(file_name.c_str());
lt_dlhandle module=lt_dlopenext(itr->string().c_str());
if (module)
{
datasource_name* ds_name = (datasource_name*) lt_dlsym(module, "datasource_name");
@ -113,8 +112,7 @@ namespace mapnik
std::cerr<<lt_dlerror()<<std::endl;
}
}
}
}
}
}
}