#!/usr/bin/env python3
# bitbake-worker
# Copyright (c) 2018-2026 Electric Cloud, Inc.
# Copyright (C) 2019-2024 CloudBees, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

"""
The substitute for bitbake-worker that ensures all the required
methods are monkey-patched.
"""

import os
import sys
import warnings

# Electric Accelerator Integration
from ebb import *

bb, bb_bin_dir, bb_libdir = ebitbake_init_patching()

# Now we can pull in the "real" worker
exec(open(os.path.join(bb_bin_dir, "bitbake-worker")).read())
