added support for sparse files in python binding. potential fix for boost path name check

This commit is contained in:
Arvid Norberg 2007-04-18 23:06:11 +00:00
parent 60ddb5c64a
commit 6b0f60e73d
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,8 @@ void bind_filesystem()
to_python_converter<boost::filesystem::path, path_to_python>();
path_from_python();
boost::filesystem::path::default_name_check(boost::filesystem::native);
using namespace boost::filesystem;
if (path::default_name_check_writable())
path::default_name_check(no_check);
}

View File

@ -201,6 +201,8 @@ void bind_session()
.def("add_extension", &add_extension)
;
def("supports_sparse_files", &supports_sparse_files);
register_ptr_to_python<std::auto_ptr<alert> >();
}