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

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

src/c/e/CellProfiler-HEAD/BatchProfiler/ViewBatch.py   CellProfiler(Download)
for run in my_batch["runs"]:
    stat  = "Unknown"
    if os.path.isfile(RunBatch.RunDoneFilePath(my_batch,run)):
        try:
            fd = open(RunBatch.RunDoneFilePath(my_batch, run), "r")
        x["text_path"] = RunBatch.RunTextFilePath(my_batch,run)
        x["done_file"] = RunBatch.RunDoneFile(run)
        x["done_path"]=  RunBatch.RunDoneFilePath(my_batch,run)
        x["out_file"] =  RunBatch.RunOutFile(run)
        x["out_path"] =  RunBatch.RunOutFilePath(my_batch,run)

src/c/e/CellProfiler-HEAD/BatchProfiler/DeleteFile.py   CellProfiler(Download)
 
    if (delete_action.upper() == "ALL") or (delete_action.upper() == "DONE"):
        remove_if_exists(RunBatch.RunDoneFilePath(my_batch, my_run))
elif form.has_key("batch_id"):
    batch_id = int(form["batch_id"].value)
 
        if (delete_action.upper() == "ALL") or (delete_action.upper() == "DONE"):
            remove_if_exists(RunBatch.RunDoneFilePath(my_batch, my_run))
 
 

src/c/e/CellProfiler-HEAD/BatchProfiler/FixPermissions.py   CellProfiler(Download)
for run in my_batch["runs"]:
    for path in [RunBatch.RunTextFilePath(my_batch,run),
                 RunBatch.RunDoneFilePath(my_batch,run),
                 RunBatch.RunOutFilePath(my_batch,run)]:
        if os.path.exists(path):