当从命令行运行此命令时,它会起作用
plutil -convert xml1 test.out -o outFile1.xml
在python 2.7中运行此命令时,我得到一个错误:
import subprocess
subprocess.check_output(["plutil -convert xml1 test.out -o outFile1.xml"])
OSError: [Errno 2] No such file or directory
我尝试将./
或.\\
添加到目录中
我使用了pwd
和os.getcwd()
来确保在这两种情况下我都是从同一个目录运行这个程序的
把你的指挥权分开应该行得通;口译员目前可能对它感到困惑
此外,您可能希望使用
plutil
的绝对路径(可选)相关问题 更多 >
编程相关推荐