From 65187652dc1ee15bd3c2f350fb1174e0c10d3d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Sat, 19 Mar 2022 21:25:09 +0100 Subject: [PATCH] [FEM] Avoid writing parse cache file to non-writable location Creating the parsetab.py cache file in the same location as the tokrules file will fail when FreeCAD is installed system wide. Caching provides hardly any benefit here, as it only takes milliseconds, and may even be negated by the additional required filesystem operations. The debug output (parser.out) does not provide any useful information for a regular FreeCAD user. Fixes (part of) #6315. --- src/Mod/Fem/femtools/tokrules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/femtools/tokrules.py b/src/Mod/Fem/femtools/tokrules.py index f96cf6f454..0acf97f440 100644 --- a/src/Mod/Fem/femtools/tokrules.py +++ b/src/Mod/Fem/femtools/tokrules.py @@ -153,4 +153,4 @@ def p_error(p): import ply.yacc as yacc -yacc.yacc() +yacc.yacc(debug=False, write_tables=False)