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

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

        def destination(cwd, path):
    dst = os.path.join(cwd, path).rstrip('/')
    if os.path.isdir(dst) and os.listdir(dst):
        raise SbdkError("Can't initialize project in non-empty dir '%s'" % dst)
    return dst
        


src/s/b/sbgsdk-0.5.4/sbdk/tests/test_project.py   sbgsdk(Download)
 
from sbdk.error import SbdkError
from sbdk.project import destination, sanitize_project_name
 
 
def test_destination():
    cwd = tempfile.mkdtemp()
    empty = destination(cwd, '')