diff --git a/README.md b/README.md index d178a8e..e2b7741 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/user.py b/user.py index cc5bc7d..56d855c 100644 --- a/user.py +++ b/user.py @@ -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 @@ -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)