code: def qteImportModule(self, fileName: str):
          
          # Split the absolute file name into the path- and file name.
          path, name = os.path.split(fileName)
          name, ext = os.path.splitext(name)
  
          # If the file name has a path prefix then search there, otherwise
          # search the default paths for Python.
          if path == '':
              path = sys.path
          else:
              path = [path]
  
          # Try to locate the module.
          try:
              fp, pathname, desc = imp.find_module(name, path)
          except ImportError:
              msg = 'Could not find module <b>{}</b>.'.format(fileName)
              self.qteLogger.error(msg)
              return None
  
          # Try to import the module.
          try:
              mod = imp.load_module(name, fp, pathname, desc)
              return mod
          except ImportError:
              msg = 'Could not import module <b>{}</b>.'.format(fileName)
              self.qteLogger.error(msg)
              return None
          finally:
              # According to the imp documentation the file pointer
              # should always be closed explicitly.
              if fp:
                  fp.close()
docs: Import ``fileName`` at run-time.
  
          If ``fileName`` has no path prefix then it must be in the
          standard Python module path. Relative path names are possible.
  
          |Args|
  
          * ``fileName`` (**str**): file name (with full path) of module
            to import.
  
          |Returns|
  
          * **module**: the imported Python module, or **None** if an
              error occurred.
  
          |Raises|
  
          * **None**