in python/make_lambda_build.py [0:0]
def copy_source_to_build_dir():
"""Copy all Python source files to the build directory."""
global build_dir
print('')
print('Looking for Python source files...')
for source in os.listdir(os.getcwd()):
if is_python_file(source) and source != __file__:
print(f'Copy file {source} to build directory...')
shutil.copy(source, build_dir)
elif os.path.isdir(source) and source not in IGNORE_DIRS:
print(f'Copy folder {source} to build directory...')
shutil.copytree(source, os.path.join(build_dir, source))