1
0
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:
Nicolas Pinault 2018-02-28 10:29:39 +01:00 committed by GitHub
parent d372d53e74
commit 3673209605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ class _TraceSignalsClass(object):
if path.exists(vcdpath):
if self.tracebackup :
backup = vcdpath + '.' + str(path.getmtime(vcdpath))
backup = vcdpath[:-4] + '.' + str(path.getmtime(vcdpath)) + '.vcd'
shutil.copyfile(vcdpath, backup)
os.remove(vcdpath)
vcdfile = open(vcdpath, 'w')