parameters: (file_path, bool_name, value_if_missing)
docstring: Looks for a Python boolean variable called bool_name in the
      file specified by file_path and returns its value.
  
      If the file or boolean variable aren't found, this function will
      return value_if_missing.
docstring_summary: Looks for a Python boolean variable called bool_name in the
      file specified by file_path and returns its value.
docstring_tokens: Looks for a Python boolean variable called bool_name in the file specified by file_path and returns its value .
function: def get_bool_from_file(file_path, bool_name, value_if_missing):
      '''Looks for a Python boolean variable called bool_name in the
      file specified by file_path and returns its value.
  
      If the file or boolean variable aren't found, this function will
      return value_if_missing.
  
      '''
  
      # Read in the file if it exists.
      if os.path.exists(file_path):
          with open(file_path, "r") as file_in:
  
              # Look for the boolean variable.
              bool_found = False
              for line in file_in:
  
                  # Remove any comments.
                  if '#' in line:
                      (line, comment) = line.split('#', 1)
  
                  # Parse the line.
                  if bool_name in line:
                      # Evaluate the variable's line once it is found.  Make
                      # the split function only split it once.
                      bool = eval(line.split('=', 1)[1].strip())
                      bool_found = True
                      break
  
      if bool_found:
          return bool
      else:
          return value_if_missing
function_tokens: def get_bool_from_file ( file_path , bool_name , value_if_missing ) : # Read in the file if it exists. if os . path . exists ( file_path ) : with open ( file_path , "r" ) as file_in : # Look for the boolean variable. bool_found = False for line in file_in : # Remove any comments. if '#' in line : ( line , comment ) = line . split ( '#' , 1 ) # Parse the line. if bool_name in line : # Evaluate the variable's line once it is found.  Make # the split function only split it once. bool = eval ( line . split ( '=' , 1 ) [ 1 ] . strip ( ) ) bool_found = True break if bool_found : return bool else : return value_if_missing