# -*- coding: utf-8 -*-
"""Vendor path setup - must be imported first in any module that uses grpc/protobuf"""
import sys
import os

_vendor_dir = os.path.dirname(os.path.abspath(__file__))
_vendor_packages = os.path.join(_vendor_dir, "vendors")

if os.path.isdir(_vendor_packages) and _vendor_packages not in sys.path:
    sys.path.insert(0, _vendor_packages)
