Skip to content

Commit

Permalink
Cleanup Python snippet required to run Python bindings on Windows (#1723
Browse files Browse the repository at this point in the history
)
  • Loading branch information
traversaro authored Sep 25, 2024
1 parent 05a67f7 commit f97babf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/cmake-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f97babf

Please sign in to comment.