def METHOD_NAME(paths):
    old_os_path = os.environ.get('PATH', '')
    os.environ['PATH'] = paths.venv_bin_dir + os.pathsep + old_os_path
    if sys.platform == 'win32':
        site_packages = os.path.join(paths.venv_dir, 'Lib', 'site-packages')
    else:
        site_packages = os.path.join(paths.venv_dir, 'lib', 'python%s' % sys.version[:3], 'site-packages')
    prev_sys_path = list(sys.path)
    site.addsitedir(site_packages)
    sys.real_prefix = sys.prefix
    sys.prefix = paths.venv_dir
    new_sys_path = []
    for item in list(sys.path):
        if item not in prev_sys_path:
            new_sys_path.append(item)
            sys.path.remove(item)
    sys.path[:0] = new_sys_path