code: def create_pathlist(self, initial_pathlist):
          
          # Get standard installation paths
          try:
              paths = sysconfig.get_paths()
              standard_paths = [paths['stdlib'],
                                paths['purelib'],
                                paths['scripts'],
                                paths['data']]
          except Exception:
              standard_paths = []
  
          # Get user installation path
          # See Spyder issue 8776
          try:
              import site
              if getattr(site, 'getusersitepackages', False):
                  # Virtualenvs don't have this function but
                  # conda envs do
                  user_path = [site.getusersitepackages()]
              elif getattr(site, 'USER_SITE', False):
                  # However, it seems virtualenvs have this
                  # constant
                  user_path = [site.USER_SITE]
              else:
                  user_path = []
          except Exception:
              user_path = []
  
          return initial_pathlist + standard_paths + user_path
docs: Add to pathlist Python library paths to be skipped from module
          reloading.