1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

fixed mistake where I replaced filename with name

This commit is contained in:
Marcel Hellwig 2016-01-31 01:10:05 +01:00
parent cff6f1e54e
commit 04b9935626

View File

@ -97,7 +97,7 @@ class _TraceSignalsClass(object):
filename = str(self.filename)
h = _HierExtr(name, dut, *args, **kwargs)
vcdpath = os.path.join(directory, name + ".vcd")
vcdpath = os.path.join(directory, filename + ".vcd")
if path.exists(vcdpath):
backup = vcdpath + '.' + str(path.getmtime(vcdpath))
shutil.copyfile(vcdpath, backup)