[v9_9] more python2/3 compatibility fixes; use setup.py to install

This commit is contained in:
Evan Hunt
2016-04-29 14:40:54 -07:00
parent b1b0f5b7c6
commit fb746f443f
9 changed files with 24 additions and 41 deletions

View File

@@ -27,9 +27,7 @@ from collections import defaultdict
prog = 'dnssec-coverage'
from isc import *
from isc.utils import prefix
from isc import dnskey, eventlist, keydict, keyevent, keyzone, utils
############################################################################
# print a fatal error and exit
@@ -139,7 +137,8 @@ def set_path(command, default=None):
def parse_args():
"""Read command line arguments, set global 'args' structure"""
compilezone = set_path('named-compilezone',
os.path.join(prefix('sbin'), 'named-compilezone'))
os.path.join(utils.prefix('sbin'),
'named-compilezone'))
parser = argparse.ArgumentParser(description=prog + ': checks future ' +
'DNSKEY coverage for a zone')