in python/rpdk/python/codegen.py [0:0]
def _recursive_relative_write(src_path, base_path, zip_file):
for path in src_path.rglob("*"):
if path.is_file() and path.suffix != ".pyc":
relative = path.relative_to(base_path)
zip_file.write(path.resolve(), str(relative))