diff --git a/doc/cmake-options.md b/doc/cmake-options.md index 3cb4d93f7..af3163fd5 100644 --- a/doc/cmake-options.md +++ b/doc/cmake-options.md @@ -372,7 +372,11 @@ Furthermore, due to Python ignoring the directories in `PATH`, before running py ~~~python import os -os.add_dll_directory(os.path.join(os.environ['ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX'], 'bin')) + +if os.name == "nt": + superbuild_dll_path = os.path.join(os.environ.get('ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX',""), 'bin') + if (os.exists(superbuild_dll_path)): + os.add_dll_directory(superbuild_dll_path) ~~~ see https://github.com/robotology/robotology-superbuild/issues/1268 for more details.