Browse Source

wrap with string to ensure windows support

python
Jørgen Lien Sellæg 7 years ago committed by Jørgen Sverre Lien Sellæg
parent
commit
8e6eaec757
  1. 2
      src/python_module.h

2
src/python_module.h

@ -20,7 +20,7 @@ namespace pybind11 {
public:
PYBIND11_TYPE_CASTER(boost::filesystem::path, _("str"));
bool load(handle src, bool) {
value = pybind11::str(src);
value = std::string(pybind11::str(src));
return !PyErr_Occurred();
}

Loading…
Cancel
Save