summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/ctrlport/monitor.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/ctrlport/monitor.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
index 0cc05be63e..3215fa5b26 100644
--- a/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
+++ b/gnuradio-runtime/python/gnuradio/ctrlport/monitor.py
@@ -47,10 +47,8 @@ class monitor(object):
def start(self):
print("monitor::endpoints() = %s" % (gr.rpcmanager_get().endpoints()))
try:
- cmd = map(lambda a: [self.tool,
- re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)",a).group(1),
- re.search(r"-p (\d+)",a).group(1)],
- gr.rpcmanager_get().endpoints())[0]
+ ep = gr.rpcmanager_get().endpoints()[0]
+ cmd = [self.tool, re.search(r"-h (\S+|\d+\.\d+\.\d+\.\d+)", ep).group(1), re.search(r"-p (\d+)", ep).group(1)]
print("running: %s"%(str(cmd)))
self.proc = subprocess.Popen(cmd);
self.started = True