Use pyspinel package (#1678)

* Modified travis script to install pyspinel package

* Modifed node_cli.py to use spinel-cli from pyspinel package
This commit is contained in:
Wojciech Bober
2017-04-28 08:35:55 -07:00
committed by Jonathan Hui
parent 1eabda6a08
commit 3a09b79b2e
2 changed files with 3 additions and 6 deletions
+1 -6
View File
@@ -70,12 +70,7 @@ class otCli:
""" Initialize an NCP simulation node. """
if "top_builddir" in os.environ.keys():
builddir = os.environ['top_builddir']
if "top_srcdir" in os.environ.keys():
srcdir = os.environ['top_srcdir']
else:
srcdir = os.path.dirname(os.path.realpath(__file__))
srcdir += "/../../.."
cmd = 'python %s/tools/spinel-cli/spinel-cli.py -p %s/examples/apps/ncp/ot-ncp-ftd -n' % (srcdir, builddir)
cmd = 'spinel-cli.py -p %s/examples/apps/ncp/ot-ncp-ftd -n' % (builddir)
else:
cmd = './ot-ncp-ftd'
cmd += ' %d' % nodeid