#! /usr/bin/env bash
# Copyright (c) 2021 Arista Networks, Inc.  All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.

# A wrapper that prevents python executables it runs from importing
# from ~/.local, saving tools people and confused users who ran a pip install
# --user at some point in time from debbuging bunk library incompatibilities.
# The expected usage is in a shebang like `#! /usr/bin/env python-no-user-site`
# instead of /usr/bin/env python.

export PYTHONNOUSERSITE="${PYTHONNOUSERSITE:-true}"

exec -a "$0" /usr/bin/env python3 "$@"
