Just a simple tool to clean up a latex project. I had the problem, that sometimes "pdflatex.exe" didn't regenerate all necessary files and so, the content in the generated pdf wasn't up to date. By running this Tool before running "pdflatex.exe", all generated files are deleted and "pdflatex.exe" has to regenerate all files.
Furthermore, this tool can be used to delete specified file extensions in a directory recursively.
This tool was tested sucessfully under Python 2.7.14!
The CleanUpConfig.json
defines the file extension to delete and the path to the directory.
{
"extensions":
[
"extension1",
"extension2"
],
"path":"path_to_directory"
}
Make sure that the CleanUp.py
and CleanUpConfig.json
are in the same directory. If not, change the path in the CleanUp.py
to the CleanUpConfig.json
. To run the tool just type in the console:
python CleanUp.py
If you want to run this tool on machines without a python installation. You can build stand-alone executables.
- Install
pyinstaller
:
pip install pyinstaller
- Build stand-alone executables:
pyinstaller CleanUp.py