blob: ca9ea03077c5006ba2608cf079474b89acdde886 [file] [log] [blame]
#!/usr/bin/env python2
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is a trampoline script to invoke the actual generator script.
import os
import sys
target_script_name = ''
target_script_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', '..', 'cros', 'tradefed',
# Note: Remove this once JDK9+ is the base JDK.
os.environ['JAVA_HOME'] = '/usr/lib64/jvm/jdk-9.0.4'
os.environ['PATH'] = os.environ['JAVA_HOME']\
+ '/bin:' + os.environ['PATH']
except OSError:
logging.error('Can\'t change current PATH directory')
os.execv(target_script_path, sys.argv)