mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
Restore old trace backup names
This commit is contained in:
parent
d372d53e74
commit
3673209605
@ -125,7 +125,7 @@ class _TraceSignalsClass(object):
|
|||||||
|
|
||||||
if path.exists(vcdpath):
|
if path.exists(vcdpath):
|
||||||
if self.tracebackup :
|
if self.tracebackup :
|
||||||
backup = vcdpath + '.' + str(path.getmtime(vcdpath))
|
backup = vcdpath[:-4] + '.' + str(path.getmtime(vcdpath)) + '.vcd'
|
||||||
shutil.copyfile(vcdpath, backup)
|
shutil.copyfile(vcdpath, backup)
|
||||||
os.remove(vcdpath)
|
os.remove(vcdpath)
|
||||||
vcdfile = open(vcdpath, 'w')
|
vcdfile = open(vcdpath, 'w')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user