所有的nova代码在执行外部命令的时候都会用到execute函数,这个函数定义在nova顶层目录下的utils.py模块下. 例如: from nova import utils utils.execute(‘chmod’,’777′,tmpdir,run_as_root=True) execute函数...
see the os.path module,and if you want to read all the lines in all the files on the command line see the fileinput module.For creating temporary files and directories see the tempfile module,and for ...