mirror of https://github.com/zeldaret/tmc.git
fix progress.py for new makefile
This commit is contained in:
parent
a9910e74cc
commit
802338f3a9
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import git
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
@ -26,7 +25,7 @@ def parse_map(non_matching_funcs):
|
||||||
data = 0
|
data = 0
|
||||||
non_matching = 0
|
non_matching = 0
|
||||||
|
|
||||||
with open('tmc.map', 'r') as map:
|
with open('build/USA/tmc.map', 'r') as map:
|
||||||
# Skip to the linker script section
|
# Skip to the linker script section
|
||||||
line = map.readline()
|
line = map.readline()
|
||||||
while not line.startswith('Linker script and memory map'):
|
while not line.startswith('Linker script and memory map'):
|
||||||
|
@ -119,6 +118,7 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
if args.format == 'csv':
|
if args.format == 'csv':
|
||||||
|
import git
|
||||||
version = 2
|
version = 2
|
||||||
git_object = git.Repo().head.object
|
git_object = git.Repo().head.object
|
||||||
timestamp = str(git_object.committed_date)
|
timestamp = str(git_object.committed_date)
|
||||||
|
|
Loading…
Reference in New Issue