From 64c56ff3539bb0c338e5d4f799e6a5bb2f6b4d42 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Tue, 4 Aug 2020 15:16:23 -0500 Subject: [PATCH] Fixed score.py --- tools/python/score.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/score.py b/tools/python/score.py index 18435543..61e7053e 100644 --- a/tools/python/score.py +++ b/tools/python/score.py @@ -24,6 +24,7 @@ for folder in ASM_FOLDERS: for matchNum, match in enumerate(matches, start=1): ASM_FUNCTIONS.append(match.groups()[0]) +BUILD_DIRECTORY = './build/us_1.0' SRC_DIRECTORY = './src' LIB_SRC_DIRECTORY = './lib/src' FUNCTION_REGEX = r'([/][*][*]([^*]|([*][^/]))*[*][/][\n]\s*)?(void|s64|s32|s16|s8|u64|u32|u16|u8|f32|f64)(\s|[*])*([0-9A-Za-z_]+)\s*[(][^)]*[)]\s*{' @@ -37,7 +38,7 @@ CODE_SIZE = CODE_END - CODE_START class DkrMapFile: def __init__(self): try: - with open('./build/dkr.map', 'r') as mapFile: + with open(BUILD_DIRECTORY + '/dkr.map', 'r') as mapFile: self.functionSizes = {} functions = [] lines = mapFile.read().split('\n')