Skip to content

Commit

Permalink
fixed path portability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Sep 9, 2005
1 parent 6750307 commit 70f79a3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/datasource_cache.cpp
Expand Up @@ -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");
Expand All @@ -113,8 +112,7 @@ namespace mapnik
std::cerr<<lt_dlerror()<<std::endl;
}
}
}

}
}
}
}

0 comments on commit 70f79a3

Please sign in to comment.