import os
import stat
os.chmod( filename, stat.S_IWRITE )
如去除文件
D:\集成架\MobileDgnSdk12\samples\PKPM-Scaffolding\PBimAllProducts\Debug\PKPMECSchemas\Base\PBM_ConstructModel.01.00.ecschema.xml的只读性
import os
import stat
os.chmod( "D:\集成架\MobileDgnSdk12\samples\PKPM-Scaffolding\PBimAllProducts\Debug\PKPMECSchemas\Base\PBM_ConstructModel.01.00.ecschema.xml", stat.S_IWRITE )
import os
import stat
os.chmod( filename, stat.S_IWRITE )
如去除文件
D:\集成架\MobileDgnSdk12\samples\PKPM-Scaffolding\PBimAllProducts\Debug\PKPMECSchemas\Base\PBM_ConstructModel.01.00.ecschema.xml的只读性
import os
import stat
os.chmod( "D:\集成架\MobileDgnSdk12\samples\PKPM-Scaffolding\PBimAllProducts\Debug\PKPMECSchemas\Base\PBM_ConstructModel.01.00.ecschema.xml", stat.S_IWRITE )