

def call_sphinx(source_dir, build_dir):
    cmd = [sys.executable, '-c', build_dir]
    build_dir.extend(('-b', 'html'))
    cmd.append(source_dir)
    cmd.append(build_dir)
    sphinx.main(argv=cmd)

dataset/ETHPy150Open aldebaran/qibuild/doc/build-doc.py call_sphinx/VarMisuse@24/34 `cmd`->`build_dir`