From 60e8c351a0035997b560e3022feaecdfcff2f68b Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Sun, 1 Oct 2017 00:27:39 +0300 Subject: [PATCH] py3k: Use relative import --- certidude/cli.py | 2 +- certidude/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/certidude/cli.py b/certidude/cli.py index 379b66b..c58e026 100755 --- a/certidude/cli.py +++ b/certidude/cli.py @@ -18,7 +18,7 @@ from configparser import ConfigParser, NoOptionError, NoSectionError from certidude.common import ip_address, ip_network, apt, rpm, pip, drop_privileges, selinux_fixup from datetime import datetime, timedelta from time import sleep -import const +from . import const logger = logging.getLogger(__name__) diff --git a/certidude/config.py b/certidude/config.py index b891e7a..4a15498 100644 --- a/certidude/config.py +++ b/certidude/config.py @@ -5,7 +5,7 @@ import configparser import ipaddress import os import string -import const +from . import const from random import choice # Options that are parsed from config file are fetched here