def recompile_all(path):
import os<EOL>if os.path.isdir(path):<EOL><INDENT>for root, dirs, files in os.walk(path):<EOL><INDENT>for name in files:<EOL><INDENT>if name.endswith('<STR_LIT>'):<EOL><INDENT>filename = os.path.abspath(os.path.join(root, name))<EOL>print(filename, file=sys.stderr)<EOL>recompile(filename)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>filename = os.path.abspath(path)<EOL>recompile(filename)<EOL><DEDENT>
recursively recompile all .py files in the directory