INNER CODE UNIT · Python

loadNameValuePairsFromFile

google/oboe · apps/OboeTester/scripts/dsp_timing.py:78

def loadNameValuePairsFromFile(filename):
    myvars = {}
    with open(filename) as myfile:
        for line in myfile:
            name, var = line.partition("=")[::2]
            myvars[name.strip()] = var
    return myvars

def loadNameValuePairsFromString(text):
    myvars = {}
    listOutput = text.splitlines()
    for line in listOutput:
            name, var = line.partition("=")[::2]
            myvars[name.strip()] = var
    return myvars

def waitForTestResult():
    testOutput = ""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…