Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ if(WIN32)
# Windows debug builds for Python require a d in order for the module to
# load. This also helps ensure that debug builds in general are matched
# to the Microsoft debug CRT.
set(OTIO_DEBUG_POSTFIX "d")
set(OTIO_DEBUG_POSTFIX "_d")
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down
7 changes: 5 additions & 2 deletions src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ void _build_any_to_py_dispatch_table() {
}
}

static py::object _value_to_any = py::none();
// Initialized lazily after the interpreter is ready.
// constructing py::none() at static init time triggers
// pybind11 GIL assertions in Debug builds.
static py::object _value_to_any;

static void py_to_any(py::object const& o, std::any* result) {
if (_value_to_any.is_none()) {
if (!_value_to_any || _value_to_any.is_none()) {
py::object core = py::module::import("opentimelineio.core");
_value_to_any = core.attr("_value_to_any");
}
Expand Down
Loading