Skip to content

Commit

Permalink
OpenSCAD: Add warning if PLY module is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 28, 2020
1 parent 7c6b707 commit 630fc04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Mod/OpenSCAD/importCSG.py
Expand Up @@ -41,9 +41,11 @@
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 *
Expand Down

0 comments on commit 630fc04

Please sign in to comment.