You should add the -d before the execution directory, like this:
subprocess.run(["pabot", "--testlevelsplit", "-d", log_directory, directorio_saida])
You should add the -d before the execution directory, like this:
subprocess.run(["pabot", "--testlevelsplit", "-d", log_directory, directorio_saida])