code: def load_config(self):
          
          # get the actor if available and override default cfg values with those
          # from the actor
          actor = get_actor()
          if actor and actor.is_running():
              # actor available and running.
              # Unless argv is set, skip parsing
              if self.argv is None:
                  self.console_parsed = False
              # copy global settings
              self.cfg.copy_globals(actor.cfg)
          #
          for name in list(self.cfg.params):
              if name in self.cfg.settings:
                  value = self.cfg.params.pop(name)
                  if value is not None:
                      self.cfg.set(name, value)
          # parse console args
          if self.console_parsed:
              self.cfg.parse_command_line(self.argv)
          else:
              self.cfg.params.update(self.cfg.import_from_module())
docs: Load the application configuration from a file and/or
          from the command line.
  
          Called during application initialisation. The parameters
          overriding order is the following:
  
          * default parameters.
          * the key-valued params passed in the initialisation.
          * the parameters in the optional configuration file
          * the parameters passed in the command line.