patch-uiCA.py 502 B

123456789101112
  1. --- uiCA.py.orig 2022-07-21 20:16:37 UTC
  2. +++ uiCA.py
  3. @@ -2077,7 +2077,7 @@ def generateHTMLTraceTable(filename, instructions, ins
  4. uopData['events'][evCycle] = ev
  5. prevInstrI = instrI
  6. - with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'traceTemplate.html'), 'r') as t:
  7. + with open('%%DATADIR%%/traceTemplate.html', 'r') as t:
  8. html = t.read()
  9. html = html.replace('var tableData = {}', 'var tableData = ' + json.dumps(tableDataForRnd))