def compile_tree():
 vstr = '.'.join(map(str, sys.version_info[:2]))
 stat = os.system(('python %s/lib/python%s/compileall.py .' % (sys.prefix, vstr)))
 if stat:
  msg = '*** ERROR: Some Python files in tree do NOT compile! ***\n'
  msg += 'See messages above for the actual file that produced it.\n'
  raise SystemExit(msg)

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