INNER CODE UNIT · Python

has_collect

ngless-toolkit/ngless · build-scripts/ngless.py:8

def has_collect(output):
    collect = "Cannot collect (not all files present yet)"

    for line in output.split("\n"):
        if collect in line:
            return True


def ngless():
    cmd = ["ngless", "--trace"] + sys.argv[1:]
    while True:
        print(">>>> Calling ngless")
        p = run(cmd, check=True, stdout=PIPE, stderr=STDOUT)

        stdout = p.stdout.decode("utf8")
        print(stdout)

        if not has_collect(stdout):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…