Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def run(project, wrapper, args, output=None, one_container=True):
    check_project_dir(project)
    check_image(project)
    r = make_runner(project)
    with open(args) as fp:
        job = Job(wrapper, args=json.load(fp))
    try:
        result = Adun(r).execute(job, one_container)
        if output:
            with open(output, 'w') as fp:
                to_json(result, fp)
        else:
            print(to_json(result))
    finally:
        r.chown()
        


src/s/b/sbgsdk-0.5.4/sbdk/tests/test_commands.py   sbgsdk(Download)
def run_adun(p):
    old = p.context['docker_client_class']
    try:
        p.context['docker_client_class'] = 'sbdk.tests.mock_client.OutJson'
        run.run(p, 'wrapper', ARGS, os.path.join(os.path.dirname(__file__), '__out__.json'), False)
        run.run(p, 'wrapper', ARGS, os.path.join(os.path.dirname(__file__), '__out__.json'), True)