#NEWLINE# def compile_tree( ) : #NEWLINE# #INDENT# 'Compile all Python files below current directory.' #NEWLINE# vstr = '.' . join ( map ( str , sys . version_info [ : 2 ] ) ) #NEWLINE# ca = compileall . __file__ #NEWLINE# stat = os . system ( ( 'python %s .' % ca ) ) #NEWLINE# if stat : #NEWLINE# #INDENT# msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n' #NEWLINE# msg += 'See messages above for the actual file that produced it.\n' #NEWLINE# raise SystemExit ( vstr )