chiark / gitweb /
Add uppercase STL and HEX to file dialog filters for linux/MacOS
[cura.git] / Cura / fabmetheus_utilities / geometry / statements / else.py
1 """
2 Polygon path.
3
4 """
5
6 from __future__ import absolute_import
7 #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
8 import __init__
9
10 from fabmetheus_utilities.geometry.geometry_utilities import evaluate
11
12
13 __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
14 __credits__ = 'Art of Illusion <http://www.artofillusion.org/>'
15 __date__ = '$Date: 2008/02/05 $'
16 __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
17
18
19 def processElementNode(elementNode):
20         "Process the xml element."
21         pass
22
23 def processElse(elementNode):
24         "Process the else statement."
25         functions = elementNode.getXMLProcessor().functions
26         if len(functions) < 1:
27                 print('Warning, "else" element is not in a function in processElse in else.py for:')
28                 print(elementNode)
29                 return
30         functions[-1].processChildNodes(elementNode)