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:
parent
cff6f1e54e
commit
04b9935626
@ -97,7 +97,7 @@ class _TraceSignalsClass(object):
|
|||||||
filename = str(self.filename)
|
filename = str(self.filename)
|
||||||
|
|
||||||
h = _HierExtr(name, dut, *args, **kwargs)
|
h = _HierExtr(name, dut, *args, **kwargs)
|
||||||
vcdpath = os.path.join(directory, name + ".vcd")
|
vcdpath = os.path.join(directory, filename + ".vcd")
|
||||||
if path.exists(vcdpath):
|
if path.exists(vcdpath):
|
||||||
backup = vcdpath + '.' + str(path.getmtime(vcdpath))
|
backup = vcdpath + '.' + str(path.getmtime(vcdpath))
|
||||||
shutil.copyfile(vcdpath, backup)
|
shutil.copyfile(vcdpath, backup)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user