Skip to content

Commit

Permalink
Merge pull request #108 from ikmckenz/fix-plugin-directory
Browse files Browse the repository at this point in the history
Fix plugin directory
  • Loading branch information
daniellasry authored Jan 7, 2019
2 parents 069bbcb + 95b2f28 commit 7c75cd0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ Select several plugins, e.g. streaming to OSC and displaying effective sample ra

> $python user.py -p /dev/ttyUSB0 --add streamer_osc --add sample_rate
Change the plugin path:

> $python user.py -p /dev/ttyUSB0 --add print --plugins-path /home/user/my_plugins
Note: type `/start` to launch the selected plugins.

#### Create new plugins
Expand Down
4 changes: 2 additions & 2 deletions user.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

if args.board == "cyton":
print ("Board type: OpenBCI Cyton (v3 API)")
from openbci import cyton as bci
import openbci.cyton as bci
elif args.board == "ganglion":
print ("Board type: OpenBCI Ganglion")
import openbci.ganglion as bci
Expand All @@ -73,7 +73,7 @@
else:
print("Port: ", args.port)

plugins_paths = ["plugins"]
plugins_paths = ["openbci/plugins"]
if args.plugins_path:
plugins_paths += args.plugins_path
manager.setPluginPlaces(plugins_paths)
Expand Down

0 comments on commit 7c75cd0

Please sign in to comment.