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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

        def check_project_dir(project):
    if not project.project_dir:
        raise SbdkError("Can't execute command: can't find project directory")
        


src/s/b/sbgsdk-0.5.4/sbdk/commands/push.py   sbgsdk(Download)
 
from sbdk.auth import push_url, push_json
from sbdk.commands import check_project_dir, check_image, check_project_data
from sbdk.docker import make_runner
 
def push(project, message):
    check_project_dir(project)
    check_project_data(project)
    check_image(project)
 

src/s/b/sbgsdk-0.5.4/sbdk/commands/run.py   sbgsdk(Download)
from sbgsdk.protocol import to_json
from sbdk.docker import make_runner
from sbdk.commands import check_image, check_project_dir
 
 
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:

src/s/b/sbgsdk-0.5.4/sbdk/commands/test.py   sbgsdk(Download)
from sbdk.commands import check_image, check_project_dir
from sbdk.docker import make_runner
 
 
def argument_parser(subparsers):
def test(project, module):
    check_project_dir(project)
    check_image(project)
    r = make_runner(project)
    try: