diff --git a/python/summarize_sgfs.py b/python/summarize_sgfs.py index 73c516124..29a9bc063 100644 --- a/python/summarize_sgfs.py +++ b/python/summarize_sgfs.py @@ -41,7 +41,7 @@ def get_game_records(self, input_file: str) -> List[GameRecord]: records.append(self.sgf_string_to_game_record(sgf, input_file)) return records else: - with open(sgf_file_name, "rb") as f: + with open(input_file, "rb") as f: sgf = f.read() return [self.sgf_string_to_game_record(sgf, input_file)]