(cmd_instance)
Post-process options relating to `build_mjbindings`.
Post-process options relating to `build_mjbindings`.
Post - process options relating to build_mjbindings .
def _finalize_mjbindings_options(cmd_instance):
  """Post-process options relating to `build_mjbindings`."""
  headers_dir = os.path.expanduser(cmd_instance.headers_dir)
  header_paths = []
  for filename in HEADER_FILENAMES:
    full_path = os.path.join(headers_dir, filename)
    if not os.path.exists(full_path):
      raise IOError('Header file {!r} does not exist.'.format(full_path))
    header_paths.append(full_path)
  cmd_instance.header_paths = ' '.join(header_paths)
def _finalize_mjbindings_options ( cmd_instance ) : headers_dir = os . path . expanduser ( cmd_instance . headers_dir ) header_paths = [ ] for filename in HEADER_FILENAMES : full_path = os . path . join ( headers_dir , filename ) if not os . path . exists ( full_path ) : raise IOError ( 'Header file {!r} does not exist.' . format ( full_path ) ) header_paths . append ( full_path ) cmd_instance . header_paths = ' ' . join ( header_paths )