示例#1
0
def invoke_matlab(command):
    matlab_bin_path = resolve_matlab_bin_path()
    invoke_process([
        '{}'.format(matlab_bin_path), '-nosplash', '-nodesktop', '-nojvm',
        '-r', '{}'.format(command)
    ])
示例#2
0
文件: base.py 项目: nontas/menpobench
def invoke_matlab(command):
    matlab_bin_path = resolve_matlab_bin_path()
    invoke_process(["{}".format(matlab_bin_path), "-nosplash", "-nodesktop", "-nojvm", "-r", "{}".format(command)])
示例#3
0
def _which_matlab():
    try:
        return invoke_process(['which', 'matlab'])
    except CalledProcessError:
        # Swallow non-zero returncode of which when not found
        pass
示例#4
0
文件: base.py 项目: nontas/menpobench
def _which_matlab():
    try:
        return invoke_process(["which", "matlab"])
    except CalledProcessError:
        # Swallow non-zero returncode of which when not found
        pass