在Python中运行Bash命令
bashCommand = "cwm --rdf test.rdf --ntriples > test.nt"os.system(bashCommand)
'import site' failed; use -v for tracebackTraceback (most recent call last):File "/usr/bin/cwm", line 48, in <module>from swap import diagImportError: No module named swap
print bashCommand
os.system()
.
os.system(bashCommand)
相关分类