import subprocess
mayabatch
= (os
.getcwd
() + "/mayabatch.exe").replace
("\\", "/")
filePath
= "D:/temp/check5/check5_v01.ma"
scriptFile
= 'python(\\"__import__(\'Checks\').cleanScene()\\")'
command
= ('%s -file "%s" -command "%s"' % (mayabatch
, filePath
, scriptFile
))
print command
subprocess
.check_call
(command
)
转载请注明原文地址:https://tech.qufami.com/read-8487.html