diff options
author | Jerome Leclanche <jerome@leclan.ch> | 2014-04-24 03:25:51 +0100 |
---|---|---|
committer | Jerome Leclanche <jerome@leclan.ch> | 2014-04-24 03:25:51 +0100 |
commit | fc6b8a308362f3fdbc459358a99cf1afe39b45d9 (patch) | |
tree | d4e0f6bc44f867dd3b2410e88802d561e304e663 | |
parent | 3694d55b15f73b531d8c7951711799ffa3c7521a (diff) |
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 = [ |