2012-06-28 17:06:00 +10:00
|
|
|
#!@PYTHON@
|
|
|
|
############################################################################
|
2018-02-23 09:53:12 +01:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 17:06:00 +10:00
|
|
|
#
|
2016-06-27 14:56:38 +10:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
#
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
2012-06-28 17:06:00 +10:00
|
|
|
############################################################################
|
|
|
|
|
|
|
|
import os
|
2016-04-28 00:12:33 -07:00
|
|
|
import sys
|
2012-06-28 17:06:00 +10:00
|
|
|
|
2016-04-28 00:12:33 -07:00
|
|
|
sys.path.insert(0, os.path.dirname(sys.argv[0]))
|
2016-06-24 16:04:10 +10:00
|
|
|
if os.name != 'nt':
|
2017-08-23 11:50:01 +02:00
|
|
|
if '@PYTHON_INSTALL_DIR@': # value of --with-python-install-dir
|
|
|
|
sys.path.insert(1, '@PYTHON_INSTALL_DIR@')
|
|
|
|
else:
|
|
|
|
sys.path.insert(1, os.path.join('@prefix@', 'lib',
|
|
|
|
'python' + sys.version[:3], 'site-packages'))
|
2014-02-26 08:43:50 -08:00
|
|
|
|
2016-04-28 00:12:33 -07:00
|
|
|
import isc.checkds
|
2012-06-28 17:06:00 +10:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2016-04-28 00:12:33 -07:00
|
|
|
isc.checkds.main()
|