Updated
This commit is contained in:
0
Scripts/Modeling/Edit/LDMT/ldmt_exe/__init__.py
Normal file
0
Scripts/Modeling/Edit/LDMT/ldmt_exe/__init__.py
Normal file
BIN
Scripts/Modeling/Edit/LDMT/ldmt_exe/instantMesh.exe
Normal file
BIN
Scripts/Modeling/Edit/LDMT/ldmt_exe/instantMesh.exe
Normal file
Binary file not shown.
2
Scripts/Modeling/Edit/LDMT/ldmt_exe/removePyc.bat
Normal file
2
Scripts/Modeling/Edit/LDMT/ldmt_exe/removePyc.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
python removePyc.py %*
|
14
Scripts/Modeling/Edit/LDMT/ldmt_exe/removePyc.py
Normal file
14
Scripts/Modeling/Edit/LDMT/ldmt_exe/removePyc.py
Normal file
@ -0,0 +1,14 @@
|
||||
import os
|
||||
def deleteFileWithFormat(targetFolder, targetFormat):
|
||||
for root,dirs,files in os.walk(targetFolder):
|
||||
for file in files:
|
||||
filePath = os.path.join(root,file)
|
||||
if filePath.endswith(targetFormat):
|
||||
os.remove(filePath)
|
||||
def run():
|
||||
getCurrentFolder = os.getcwd()
|
||||
targetFolder = getCurrentFolder[:-9]
|
||||
deleteFileWithFormat(targetFolder,'pyc')
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
Reference in New Issue
Block a user