Skip to content

Commit 581296e

Browse files
committed
driver: SigrokDriver analyze method checks/uses wrong (local) file path,
happens only when when the resource is remote Signed-off-by: Felix Zwettler <felix.zwettler@duagon.com>
1 parent b0506af commit 581296e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

labgrid/driver/sigrokdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def stop(self):
212212
def analyze(self, args, filename=None):
213213
annotation_regex = re.compile(r'(?P<startnum>\d+)-(?P<endnum>\d+) (?P<decoder>[\w\-]+): (?P<annotation>[\w\-]+): (?P<data>".*)') # pylint: disable=line-too-long
214214
if not filename and self._filename:
215-
filename = self._filename
215+
filename = os.path.join(self._tmpdir, self._basename)
216216
else:
217217
filename = os.path.abspath(filename)
218218
check_file(filename, command_prefix=self.sigrok.command_prefix)

0 commit comments

Comments
 (0)