def build(sc: scenario.Scenario, file_path, debug=False): with open(file_path, 'w', encoding='utf-8') as file: file.write(sc.code_gen(debug))