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

import os, sys
# Set the 'NOPDB' environment variable before importing Tac to prevent us from
# ever dropping into PDB (see tacc/Tac/Excepthook.py).
os.environ[ 'NOPDB' ] = '1'

# Pylint gets confused as the script and the library (with a .py exception)
# are named the same.
# pylint: disable-msg=W0406
import LoadExtensionStatus # pylint: disable=wrong-import-position
try:
   LoadExtensionStatus.main( sys.argv[ 1: ] ) # pylint: disable=c-extension-no-member
# pylint: disable-next=c-extension-no-member
except LoadExtensionStatus.LoadExtensionStatusError as e:
   sys.stderr.write( "%s\n" % e ) # pylint: disable=consider-using-f-string
   sys.exit( 1 )
