import begin
import json
import os
import sys

util_parent = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
util_path = os.path.join(util_parent, 'util')
sys.path.append(util_path)

import abstractprocess

def get_script_dir():
    path = os.path.dirname(os.path.realpath(__file__))
    return path


def get_sys_info():
    script_path = os.path.join(get_script_dir(), '_sysinfo.py')
    script_cmd  = [script_path]
    proc = abstractprocess.Process("local", command = script_cmd)
    result = proc.get_output()
    if result["returncode"] != 0:
        print("Cannot get system info. Exiting.")
        print(result)
        exit(1)
    json_info = result["out"]
    dic_info = json.loads(json_info)
    return dic_info


@begin.start
def main():
    info = get_sys_info()
    print(json.dumps(info, sort_keys=True,  indent=4, separators=(',', ': ')))

@@ -44,157 +44,18 @@
 ys%0A%0A
-util_parent = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))%0Autil_path = os.path.join(util_parent, 'util')%0Asys.path.append(util_path)%0A%0A
+from util 
 impo

clean abstractprocess call in sysinfo