code: def normalize(self):
          
          # Normalize configuration
          self.__state.normalize()
  
          # Update sys.path, avoiding duplicates
          whole_path = list(self.__state.paths)
          whole_path.extend(sys.path)
  
          # Ensure the working directory as first search path
          sys.path = ["."]
          for path in whole_path:
              if path not in sys.path:
                  sys.path.append(path)
docs: Normalizes environment variables and the Python path.
  
          This method first updates the environment variables (``os.environ``).
          Then, it normalizes the Python path (``sys.path``) by resolving all
          references to the user directory and environment variables.