voneiden / ocp-freecad-cam

CAM for CadQuery and Build123d by leveraging FreeCAD
https://pypi.org/project/ocp-freecad-cam/
Apache License 2.0
30 stars 3 forks source link

Permission denied error on Windows when exporting gcode #27

Closed voneiden closed 8 months ago

voneiden commented 8 months ago

ocp-freecad-cam creates a temporary file that is used for capturing the export output from FreeCAD:

https://github.com/voneiden/ocp-freecad-cam/blob/4bf4a7715463a578854d92b3a5f0fa068292d1e2/src/ocp_freecad_cam/fc_impl.py#L185-L190

However on windows this crashes, because FreeCAD attemps to re-open the file while it is already open and it is not possible to open the file twice.

Relates to #21