def _get_cscript_path():
 for dir in os.environ.get('PATH', '').split(os.pathsep):
  cscript_path = os.path.join(dir, 'cscript.exe')
  if os.path.exists(cscript_path):
   return cscript_path

def _get_cscript_path ( ) : for dir in os . environ . get ( 'PATH' , '' ) . split ( os . pathsep ) : cscript_path = os . path . join ( dir , 'cscript.exe' ) if os . path . exists ( cscript_path ) : return cscript_path
return the full path to cscript .