File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ project(BrainflowSpO2Algorithm VERSION 4.1 LANGUAGES C CXX) # Project name becom
55# GoogleTest requires at least C++17
66set (CMAKE_CXX_STANDARD 17)
77set (CMAKE_CXX_STANDARD_REQUIRED ON )
8+ set (CMAKE_POSITION_INDEPENDENT_CODE ON )
89
910# Set Arduino directory variable
1011IF (WIN32 )
@@ -77,4 +78,4 @@ pybind11_add_module(BrainflowSpO2Algorithm "${CMAKE_CURRENT_SOURCE_DIR}/bindings
7778
7879target_link_libraries (BrainflowSpO2Algorithm PUBLIC
7980 lib
80- )
81+ )
Original file line number Diff line number Diff line change 11import sys
22import os
33cur_dir = os .path .dirname (__file__ )
4+
5+ # Add build directory to sys.path (linux/macOS .so files end up in build directory)
6+ pyd_dir = os .path .join (cur_dir , 'build' )
7+ sys .path .append (os .path .abspath (pyd_dir ))
8+
9+ # For Windows, the .pyd files end up in build/Release directory
410pyd_dir = os .path .join (cur_dir , 'build/Release' )
511sys .path .append (os .path .abspath (pyd_dir ))
612
You can’t perform that action at this time.
0 commit comments