From d18ebefb13aa71ed19d3e6dc207a9f5bdcf141e3 Mon Sep 17 00:00:00 2001 From: Diego Ferigo Date: Wed, 27 Oct 2021 15:44:14 +0200 Subject: [PATCH] [?] import in windows with cmake_build_extension context manager --- scenario/bindings/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scenario/bindings/__init__.py b/scenario/bindings/__init__.py index 64cfd1139..4364afd50 100644 --- a/scenario/bindings/__init__.py +++ b/scenario/bindings/__init__.py @@ -214,7 +214,10 @@ def import_gazebo() -> None: sys.setdlopenflags(dlopen_flags) else: - import scenario.bindings.gazebo + import cmake_build_extension + + with cmake_build_extension.build_extension_env(): + import scenario.bindings.gazebo def create_home_dot_folder() -> None: