def main():
if len(sys.argv) < 2 or sys.argv[1] == "-h":
print(USAGE)
return
log.debug("sys.argv: %s", sys.argv)
root_dir = _ddtrace_root()
log.debug("ddtrace root: %s", root_dir)
bootstrap_dir = os.path.join(root_dir, 'bootstrap')
log.debug("ddtrace bootstrap: %s", bootstrap_dir)
_add_bootstrap_to_pythonpath(bootstrap_dir)
log.debug("PYTHONPATH: %s", os.environ['PYTHONPATH'])
log.debug("sys.path: %s", sys.path)
executable = sys.argv[1]
# Find the executable path
executable = spawn.find_executable(executable)
log.debug("program executable: %s", executable)
os.execl(executable, executable, *sys.argv[2:])
评论列表
文章目录