From fc6b8a308362f3fdbc459358a99cf1afe39b45d9 Mon Sep 17 00:00:00 2001 From: Jerome Leclanche Date: Thu, 24 Apr 2014 03:25:51 +0100 Subject: Use relative imports. Fixes #33 --- ngxtop/config_parser.py | 2 +- ngxtop/ngxtop.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ngxtop/config_parser.py b/ngxtop/config_parser.py index b8e4804..f6999cf 100644 --- a/ngxtop/config_parser.py +++ b/ngxtop/config_parser.py @@ -8,7 +8,7 @@ import subprocess from pyparsing import Literal, Word, ZeroOrMore, OneOrMore, Group, \ printables, quotedString, pythonStyleComment, removeQuotes -from utils import choose_one, error_exit +from .utils import choose_one, error_exit REGEX_SPECIAL_CHARS = r'([\.\*\+\?\|\(\)\{\}\[\]])' diff --git a/ngxtop/ngxtop.py b/ngxtop/ngxtop.py index afb5bc3..8667b8b 100755 --- a/ngxtop/ngxtop.py +++ b/ngxtop/ngxtop.py @@ -74,8 +74,8 @@ except ImportError: from docopt import docopt import tabulate -from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern -from utils import error_exit +from .config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern +from .utils import error_exit DEFAULT_QUERIES = [ -- cgit v1.2.3