def main(arg):
    if (arg == 'sysconfig'):
        marker = '$^'
        simplified_dirs = get_simplified_dirs(sysconfig.get_config_var('abs_builddir'))
        if simplified_dirs:
            print(("# '%s' is original abs_builddir:" % marker))
            print(('%s: %s\n' % (marker, simplified_dirs[0])))
        for (k, v) in sorted(sysconfig.get_config_vars().items()):
            for sp in simplified_dirs:
                v = str(v).replace(sp, marker)
            print(('%s: %s' % (k, v)))
        return
    if (arg and (not arg.startswith('-'))):
        report = dict(((k, module_report(k)) for k in arg.split(',')))
        report = dict(report=report, srcdir=get_srcdir(), prefix=sysconfig.get_config_var('prefix'))
        print(json.dumps(report, indent=2, sort_keys=True))
def main(arg):
    if (arg == 'sysconfig'):
        marker = '$^'
        simplified_dirs = get_simplified_dirs(sysconfig.get_config_var('abs_builddir'))
        if simplified_dirs:
            print(("# '%s' is original abs_builddir:" % marker))
            print(('%s: %s\n' % (marker, simplified_dirs[0])))
        for (k, v) in sorted(sysconfig.get_config_vars().items()):
            for sp in simplified_dirs:
                v = str(v).replace(sp, marker)
            print(('%s: %s' % (k, v)))
        return
    if (arg and (not arg.startswith('-'))):
        report = dict(((k, module_report(k)) for k in arg.split(',')))
        report = dict(report=report, srcdir=get_srcdir(), prefix=sysconfig.get_config_var('prefix'))
        print(json.dumps(report, indent=2, sort_keys=True))