mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
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:
committed by
Jonathan Hui
parent
1eabda6a08
commit
3a09b79b2e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user