From a3ee02514b5fbd43a38ddf515a4aad49bb4e161a Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 16 Oct 2019 17:23:18 -0700 Subject: [PATCH] fix imports and module names --- jc/jc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jc/jc.py b/jc/jc.py index 07742a6f..6f709b96 100755 --- a/jc/jc.py +++ b/jc/jc.py @@ -6,9 +6,9 @@ Main input module import sys import json -from jc.parsers import ifconfig -from jc.parsers import ls -from jc.parsers import netstat +import jc.parsers.ifconfig +import jc.parsers.ls +import jc.parsers.netstat def main(): pretty = False @@ -27,11 +27,11 @@ def main(): pretty = True if arg == '--ifconfig': - result = ifconfig.parse(data) + result = jc.parsers.ifconfig.parse(data) elif arg == '--ls': - result = ls.parse(data) + result = jc.parsers.ls.parse(data) elif arg == '--netstat': - result = netstat.parse(data) + result = jc.parsers.netstat.parse(data) # output resulting dictionary as json if pretty: