I am aware that I can set FreeCAD to not generate these files from the GUI by setting to false this parameter:
"Tools > Edit Parameters -> BaseApp > Preferences > Document > CreateBackupFiles"
What I would like to do is set this parameter programmatically (ideally from the python interface) so that I can avoid the backup files on a headless server (potentially dockerised to be spooled up and destroyed as needed).
Any help, advice or pointing me to where I can find things myself is appreciated!
Trivial code snippet for clarity:
Code: Select all
import FreeCAD
doc = FreeCAD.newDocument("someTrash")
doc.saveAs("~/my_file.FCstd")
# This line will create a .FCstd1 file unless the correct parameter is set in FreeCAD
doc.saveAs("~/my_file.FCstd")
OS: Linux Mint 19.3
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/HongKong (en_HK)