Skip to content

Commit d27ef16

Browse files
committed
user has to uncomment which path is needed depending on OS
1 parent 485c425 commit d27ef16

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

pybind/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Run `cmake --build build --config Release` to generate the `.pyd` file
2525
- On Windows using MSVC, the `.pyd` file will be under `pybind/build/Release`
2626
- Otherwise, the `.pyd` file will be under `pybind/build`
27+
- Open `run.py` and uncomment lines 6-7 (if on linux/macOS), or uncomment lines 10-11 (if on Windows)
2728

2829
## Testing
2930
- Run the EmotiBit Data Parser on `tests/simulated-unobstructed-airway_v0.0.0/ip900ap/EmotiBit.csv`

pybind/run.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
import os
33
cur_dir = os.path.dirname(__file__)
44

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))
5+
# Uncomment the two lines below for linux/macOS since .so files from CMake end up in build directory
6+
# pyd_dir = os.path.join(cur_dir, 'build') # Uncomment if on linux/macOS
7+
# sys.path.append(os.path.abspath(pyd_dir)) # Uncomment if on linux/macOS
88

9-
# For Windows, the .pyd files end up in build/Release directory
10-
pyd_dir = os.path.join(cur_dir, 'build/Release')
11-
sys.path.append(os.path.abspath(pyd_dir))
9+
# Uncomment the two lines below for Windows since the .pyd files from CMake end up in build/Release directory
10+
# pyd_dir = os.path.join(cur_dir, 'build/Release')
11+
# sys.path.append(os.path.abspath(pyd_dir))
1212

1313
import BrainflowSpO2Algorithm
1414
import csv

0 commit comments

Comments
 (0)