def report(): if not os.path.exists('/tmp/mProf'): os.makedirs('/tmp/mProf') for f in filenames: colorize_db_t.colorize_file(files[f], fullfilenames[f],open('/tmp/mProf/' + f + '.html', 'w')) webbrowser.open('/tmp/mProf/' + f + '.html', 2)
def report(): tpath = os.path.join(tempfile.gettempdir(), 'mProf') if not os.path.exists(tpath): os.makedirs(tpath) for f in filenames: tfn = os.path.join(tpath, f + '.html') colorize_db_t.colorize_file(files[f], linecounts[f], fullfilenames[f],open(tfn, 'w')) webbrowser.open(tfn, 2)
def report(): tpath = os.path.join(tempfile.gettempdir(), 'mProf') if not os.path.exists(tpath): os.makedirs(tpath) for f in filenames: tfn = os.path.join(tpath, f + '.html') colorize_db_t.colorize_file(files[f], linecounts[f], fullfilenames[f], open(tfn, 'w')) webbrowser.open(tfn, 2)