2013-03-20 17:31:10 -04:00
|
|
|
#!@PYTHON@
|
2021-06-03 02:37:05 -04:00
|
|
|
|
2018-02-23 03:53:12 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2013-03-20 17:31:10 -04:00
|
|
|
#
|
2021-06-03 02:37:05 -04:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
#
|
2016-06-27 00:56:38 -04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
2021-06-03 02:37:05 -04:00
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 19:50:58 -04:00
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
2013-03-21 19:46:12 -04:00
|
|
|
|
2013-03-20 17:31:10 -04:00
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
|
2016-04-28 03:12:33 -04:00
|
|
|
sys.path.insert(0, os.path.dirname(sys.argv[0]))
|
2022-06-08 07:34:19 -04:00
|
|
|
if os.name != "nt":
|
|
|
|
|
if "@PYTHON_INSTALL_DIR@": # value of --with-python-install-dir
|
|
|
|
|
sys.path.insert(1, "@PYTHON_INSTALL_DIR@")
|
2017-08-23 05:50:01 -04:00
|
|
|
else:
|
2022-06-08 07:34:19 -04:00
|
|
|
sys.path.insert(
|
|
|
|
|
1,
|
|
|
|
|
os.path.join(
|
|
|
|
|
"@prefix@", "lib", "python" + sys.version[:3], "site-packages"
|
|
|
|
|
),
|
|
|
|
|
)
|
2013-03-20 17:31:10 -04:00
|
|
|
|
2016-04-28 03:12:33 -04:00
|
|
|
import isc.coverage
|
2013-03-20 17:31:10 -04:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2016-04-28 03:12:33 -04:00
|
|
|
isc.coverage.main()
|