Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_get_rendered_source_filepath():
rendered_path = cppimport.templating.get_rendered_source_filepath('abc.cpp')
assert(rendered_path == '.rendered.abc.cpp')
def template_and_build(filepath, module_data):
# Don't import until here to reduce startup time.
import cppimport.templating as templating
import cppimport.build_module as build_module
quiet_print("Compiling " + filepath)
templating.run_templating(module_data)
build_module.build_module(module_data)
cppimport.checksum.checksum_save(module_data)