"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/bin/python/dnssec-checkds.py.in" (7 Sep 2020, 959 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!@PYTHON@
    2 ############################################################################
    3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    4 #
    5 # This Source Code Form is subject to the terms of the Mozilla Public
    6 # License, v. 2.0. If a copy of the MPL was not distributed with this
    7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
    8 #
    9 # See the COPYRIGHT file distributed with this work for additional
   10 # information regarding copyright ownership.
   11 ############################################################################
   12 
   13 import os
   14 import sys
   15 
   16 sys.path.insert(0, os.path.dirname(sys.argv[0]))
   17 if os.name != 'nt':
   18     if '@PYTHON_INSTALL_DIR@': # value of --with-python-install-dir
   19         sys.path.insert(1, '@PYTHON_INSTALL_DIR@')
   20     else:
   21         sys.path.insert(1, os.path.join('@prefix@', 'lib',
   22                         'python' + sys.version[:3], 'site-packages'))
   23 
   24 import isc.checkds
   25 
   26 if __name__ == "__main__":
   27     isc.checkds.main()