diff --git a/src/Mod/OpenSCAD/importCSG.py b/src/Mod/OpenSCAD/importCSG.py index aa10bd51d0..09e4cec9b4 100644 --- a/src/Mod/OpenSCAD/importCSG.py +++ b/src/Mod/OpenSCAD/importCSG.py @@ -35,7 +35,6 @@ printverbose = False import FreeCAD import io import os -import tempfile import ply.lex as lex import ply.yacc as yacc @@ -178,9 +177,9 @@ def processcsg(filename): # Build the parser if printverbose: print('Load Parser') - # No debug out otherwise Linux has protection exception - temp = tempfile.gettempdir() - parser = yacc.yacc(debug=False,outputdir=temp) + # Disable generation of debug ('parser.out') and table cache ('parsetab.py'), + # as it requires a writable location + parser = yacc.yacc(debug=False, write_tables=False) if printverbose: print('Parser Loaded') # Give the lexer some input #f=open('test.scad', 'r')