INNER CODE UNIT · Python

progname

probcomp/bayeslite · shell/src/main.py:53

        progname = progname[slash + 1:]
    if args.bdbpath is None and not args.memory:
        stderr.write('%s: pass filename or -m/--memory\n' % (progname,))
        return 1
    if args.bdbpath == '-':
        stderr.write('%s: missing option?\n' % (progname,))
        return 1
    bdb = bayeslite.bayesdb_open(pathname=args.bdbpath,
        builtin_backends=False)

    multiprocess = args.jobs != 1
    backend = CGPM_Backend(cgpm_registry={}, multiprocess=multiprocess)
    bayeslite.bayesdb_register_backend(bdb, backend)
    bdbshell = shell.Shell(bdb, 'cgpm', stdin, stdout, stderr)
    with hook.set_current_shell(bdbshell):
        if not args.no_init_file:
            init_file = os.path.join(os.path.expanduser('~/.bayesliterc'))
            if os.path.isfile(init_file):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…