OpenSCAD: Add warning if PLY module is not found

This commit is contained in:
Yorik van Havre
2020-01-28 12:22:08 +01:00
parent 4802ef3522
commit f52dfad5fa

View File

@@ -41,9 +41,11 @@ else:
if printverbose: print("FreeCAD Gui not present.")
gui = False
import ply.lex as lex
import ply.yacc as yacc
try:
import ply.lex as lex
import ply.yacc as yacc
except:
FreeCAD.Console.PrintError("PLY module was not found. Please refer to the OpenSCAD documentation on the FreeCAD wiki\n")
import Part
from OpenSCADFeatures import *