Python インタープリターまたは Python スクリプトからスクリプト ファイルを呼び出すと、エラーが発生'No such file or directory'
し、Linux スクリプトが実行されません。subprocess.call('ls') のような純粋な Linux コマンドを呼び出すと、正常に動作します。
「C」では、次のように使用します: system("");
Pythonで同等のものは何ですか?
Linux コンピューター上の Python スクリプトから、ビルドを行うスクリプトを呼び出す必要があります。
subprocess.call
Linux シェル コマンドではうまく機能しますが'No such file or directory'
、スクリプトを呼び出すと取得されます。
これが呼び出す私のPythonスクリプト行です:
rtn_code = subprocess.call(['~/WindRiver/workspace/XPedite5570_SMP_VIP/build_MM_VxWorks'])
`build_MM_VxWorks` is a Linux script that uses VxWorks development tools to build a VxWorks kernel.
`build_MM_VxWorks` works okay from the Linux command line.