docstr: Pelican initialization
  
  Performs some checks on the environment before doing anything else.
docstr_tok: ["Pelican","initialization","Performs","some","checks","on","the","environment","before","doing","anything","else","."]
code: def __init__(self, settings):
      """Pelican initialization
  
      Performs some checks on the environment before doing anything else.
      """
  
      # define the default settings
      self.settings = settings
  
      self.path = settings["PATH"]
      self.theme = settings["THEME"]
      self.output_path = settings["OUTPUT_PATH"]
      self.ignore_files = settings["IGNORE_FILES"]
      self.delete_outputdir = settings["DELETE_OUTPUT_DIRECTORY"]
      self.output_retention = settings["OUTPUT_RETENTION"]
  
      self.init_path()
      self.init_plugins()
      signals.initialized.send(self)
  
imports: import argparse
  import importlib.metadata
  import json
  import logging
  import multiprocessing
  import os
  import pprint
  import sys
  import time
  import traceback
  from collections.abc import Iterable
  from pkgutil import extend_path
  from pelican.log import console
  from pelican.log import init
  from pelican.generators import ArticlesGenerator, PagesGenerator, SourceFileGenerator, StaticGenerator, TemplatePagesGenerator
  from pelican.plugins import signals
  from pelican.plugins._utils import get_plugin_name, load_plugins
  from pelican.readers import Readers
  from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
  from pelican.settings import read_settings
  from pelican.utils import clean_output_dir, maybe_pluralize, wait_for_changes
  from pelican.writers import Writer
label_desc: Use image node_id 1 to create a new Pelican object  with example: obj = Pelican(settings)