diff options
author | Binh Le <lebinh.it@gmail.com> | 2014-05-05 22:32:51 +0700 |
---|---|---|
committer | Binh Le <lebinh.it@gmail.com> | 2014-05-05 22:32:51 +0700 |
commit | ffce3c36b9e9358e4f3b504ce1036ddc4b37a6a8 (patch) | |
tree | d4e0f6bc44f867dd3b2410e88802d561e304e663 | |
parent | 3694d55b15f73b531d8c7951711799ffa3c7521a (diff) | |
parent | fc6b8a308362f3fdbc459358a99cf1afe39b45d9 (diff) |
Merge pull request #37 from jleclanche/fix/33
Use relative imports. Fixes #33
-rw-r--r-- | ngxtop/config_parser.py | 2 | ||||
-rwxr-xr-x | 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 = [ |