code: def add_sys_paths(paths):
      
      original_syspath = sys.path[:]
      sys.path.extend(paths)
  
      try:
          yield
      finally:
          sys.path = original_syspath
docs: Add to sys.path, and revert on scope exit.