code: def read2dict(cls, filename, info):
          
          if not filename.endswith('.py'):
              filename += '.py'
          path = os.path.join(cls._workingpath, filename)
          try:
              if path not in cls._registry:
                  with open(path) as file_:
                      cls._registry[path] = file_.read()
              exec(cls._registry[path], {}, info)
          except BaseException:
              objecttools.augment_excmessage(
                  'While trying to load the control file `%s`'
                  % path)
          if 'model' not in info:
              raise IOError(
                  'Model parameters cannot be loaded from control file `%s`.  '
                  'Please refer to the HydPy documentation on how to prepare '
                  'control files properly.'
                  % path)
docs: Read the control parameters from the given path (and its
          auxiliary paths, where appropriate) and store them in the given
          |dict| object `info`.
  
          Note that the |dict| `info` can be used to feed information
          into the execution of control files.  Use this method only if you
          are completely sure on how the control parameter import of HydPy
          works.  Otherwise, you should most probably prefer to use
          |ControlManager.load_file|.