Lines Matching refs:f
47 with open(lvgl_config_path, 'rb') as f:
48 data = f.read().decode('utf-8').split('\n')
77 if line.startswith(f'#define {item} '):
78 data[i] = f'#define {item} 1'
81 with open(os.path.join(temp_directory, 'lv_conf.h'), 'wb') as f:
82 f.write('\n'.join(data).encode('utf-8'))
105 output_pp = f'/Fi"{pp_file}"'
115 output_pp = f' >> "{pp_file}"'
121 output_pp = f' >> "{pp_file}"'
129 f'{fake_libc_path}{os.pathsep}{os.environ[include_path_env_key]}'
136 f'{fake_libc_path}{os.pathsep}{os.environ["PATH"]}'
146 cpp_cmd.extend(['-DPYCPARSER', f'"-I{fake_libc_path}"'])
147 cpp_cmd.extend([f'"-I{item}"' for item in include_dirs])
148 cpp_cmd.append(f'"{target_header}"')
176 with open(pp_file, 'r') as f:
177 pp_data = f.read()
199 with open(output_path, 'w') as f:
200 f.write(json.dumps(ast.to_dict(), indent=4))