code: def normalize_path():
      
      # Normalize Python paths
      whole_path = [
          os.path.abspath(path) for path in sys.path if os.path.exists(path)
      ]
  
      # Keep the "dynamic" current folder indicator and add the "static"
      # current path
      # Use an OrderedDict to have a faster lookup (path not in whole_set)
      whole_set = collections.OrderedDict((("", 1), (os.getcwd(), 1)))
  
      # Add original path entries
      for path in whole_path:
          if path not in whole_set:
              whole_set[path] = 1
  
      # Set the new content of sys.path (still ordered thanks to OrderedDict)
      sys.path = list(whole_set)
  
      # Normalize paths in loaded modules
      for module_ in sys.modules.values():
          try:
              module_.__path__ = [
                  os.path.abspath(path)
                  for path in module_.__path__
                  if _package_exists(path)
              ]
          except AttributeError:
              # builtin modules don't have a __path__
              pass
          except ImportError:
              pass
docs: Normalizes sys.path to avoid the use of relative folders