Skip to content
Snippets Groups Projects
Commit 3afbcda6 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

[tools] Replace '/' by '_' in filenames for traces.

parent 1d3ee6f1
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ def addTrace(robot, trace, entityName, signalName, autoRecompute=True): ...@@ -9,7 +9,7 @@ def addTrace(robot, trace, entityName, signalName, autoRecompute=True):
Add a signal to a tracer and recompute it automatically if necessary. Add a signal to a tracer and recompute it automatically if necessary.
""" """
signal = '{0}.{1}'.format(entityName, signalName) signal = '{0}.{1}'.format(entityName, signalName)
filename = '{0}-{1}'.format(entityName, signalName) filename = '{0}-{1}'.format(entityName, signalName).replace('/', '_')
trace.add(signal, filename) trace.add(signal, filename)
if autoRecompute: if autoRecompute:
robot.device.after.addSignal(signal) robot.device.after.addSignal(signal)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment