Flask directory upload POC, embed datasheet.info in html comment for parser reuse

This commit is contained in:
Jesse Cirimelli-Low
2018-11-13 17:29:43 -08:00
parent 0dd97e54dd
commit fa27d647d2
5 changed files with 62 additions and 0 deletions
+7
View File
@@ -7,6 +7,7 @@ from in_out import *
from hierarchy_design import total_drc_errors
from hierarchy_design import total_lvs_errors
import os
import csv
from globals import OPTS
class datasheet():
@@ -40,6 +41,12 @@ class datasheet():
DRC = 'skipped'
LVS = 'skipped'
PEX = 'skipped'
with open(OPTS.openram_temp + "/datasheet.info") as info:
self.html += '<!--'
for row in info:
self.html += row
self.html +='-->'
self.html += '<img src=' + os.path.abspath(os.environ.get("OPENRAM_HOME")) + '/datasheet/assets/vlsi_logo.png alt="VLSIDA"><img src=' + os.path.abspath(os.environ.get("OPENRAM_HOME")) + '/datasheet/assets/openram_logo_placeholder.png alt="OpenRAM">'