예제 #1
0
def setUpModule():
    datadir = os.getenv("LINK_GRAMMAR_DATA", "")
    if datadir:
        clg.dictionary_set_data_dir(datadir)

    clg.test_data_srcdir = os.getenv("srcdir")
    if clg.test_data_srcdir:
        clg.test_data_srcdir += "/"
    else:
        clg.test_data_srcdir = ""
예제 #2
0
def setUpModule():
    datadir = os.getenv("LINK_GRAMMAR_DATA", "")
    if datadir:
        clg.dictionary_set_data_dir(datadir)

    clg.test_data_srcdir = os.getenv("srcdir")
    if clg.test_data_srcdir:
        clg.test_data_srcdir += "/"
    else:
        clg.test_data_srcdir = ""
예제 #3
0
def setUpModule():
    datadir = os.getenv("LINK_GRAMMAR_DATA", "")
    if datadir:
        # Make sure we use an absolute path, else "Error opening word file..."
        datadir = os.path.abspath(datadir)
        clg.dictionary_set_data_dir(datadir)
        clg.test_data_srcdir = os.getenv("srcdir")
        if clg.test_data_srcdir:
            clg.test_data_srcdir += "/"
        else:
            clg.test_data_srcdir = ""
예제 #4
0
def setUpModule():
    datadir = os.getenv("LINK_GRAMMAR_DATA", "")
    if datadir:
        # Make sure we use an absolute path, else "Error opening word file..."
        datadir = os.path.abspath(datadir)
        clg.dictionary_set_data_dir(datadir)
        clg.test_data_srcdir = os.getenv("srcdir")
        if clg.test_data_srcdir:
            clg.test_data_srcdir += "/"
        else:
            clg.test_data_srcdir = ""