parameters: (scripts_dir, script_lang, options)
docstring: Prepares the binding for a specific language.
  
      @param scripts_dir the full path to the scripts source directory.
      @param script_lang the name of the script language.  Should be a child
      directory within the scripts dir, and should contain a
      prepare_scripts_{script_lang}.py script file in it.
      @param options the dictionary of parsed command line options.
  
      There is no return value.  If it returns, the process succeeded; otherwise,
      the process will exit where it fails.
docstring_summary: Prepares the binding for a specific language.
docstring_tokens: Prepares the binding for a specific language .
function: def prepare_binding_for_language(scripts_dir, script_lang, options):
      """Prepares the binding for a specific language.
  
      @param scripts_dir the full path to the scripts source directory.
      @param script_lang the name of the script language.  Should be a child
      directory within the scripts dir, and should contain a
      prepare_scripts_{script_lang}.py script file in it.
      @param options the dictionary of parsed command line options.
  
      There is no return value.  If it returns, the process succeeded; otherwise,
      the process will exit where it fails.
      """
      # Ensure the language-specific prepare module exists.
      script_name = "prepare_binding_{}.py".format(script_lang)
      lang_path = os.path.join(scripts_dir, script_lang)
      script_path = os.path.join(lang_path, script_name)
      if not os.path.exists(script_path):
          logging.error(
              "failed to find prepare script for language '%s' at '%s'",
              script_lang,
              script_path)
          sys.exit(-9)
  
      # Include this language-specific directory in the Python search
      # path.
      sys.path.append(os.path.normcase(lang_path))
  
      # Execute the specific language script
      module_name = os.path.splitext(script_name)[0]
      module = __import__(module_name)
      module.main(options)
  
      # Remove the language-specific directory from the Python search path.
      sys.path.remove(os.path.normcase(lang_path))
function_tokens: def prepare_binding_for_language ( scripts_dir , script_lang , options ) : # Ensure the language-specific prepare module exists. script_name = "prepare_binding_{}.py" . format ( script_lang ) lang_path = os . path . join ( scripts_dir , script_lang ) script_path = os . path . join ( lang_path , script_name ) if not os . path . exists ( script_path ) : logging . error ( "failed to find prepare script for language '%s' at '%s'" , script_lang , script_path ) sys . exit ( - 9 ) # Include this language-specific directory in the Python search # path. sys . path . append ( os . path . normcase ( lang_path ) ) # Execute the specific language script module_name = os . path . splitext ( script_name ) [ 0 ] module = __import__ ( module_name ) module . main ( options ) # Remove the language-specific directory from the Python search path. sys . path . remove ( os . path . normcase ( lang_path ) )