def main():
    # read arguments
    # [future] PID File
    # [future] daemonize
    args = parse_arguments()

    # setup config directory
    config_dir = setup_config(args.config_dir)

    # create environment, add to Python Path
    source_dir = setup_env()

    # setup log
    setup_logging(config_dir, args.verbose)

    # setup polyglot
    from polyglot import nodeserver_helpers
    from polyglot.core import Polyglot
    nodeserver_helpers.SERVER_LIB_EXTERNAL = \
        os.path.join(config_dir, 'node_servers')

    # create polyglot
    pglot = Polyglot(config_dir)

    # setup and run polyglot
    pglot.setup()
    pglot.run()

    # cleanup and exit
    cleanup(source_dir)
    sys.exit(0)
Dump an object to JSON and create a Response object from the dump.
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/__main__.py/main--crossover with--dataset/ETHPy150Open rehandalal/buchner/buchner/helpers.py/jsonify