Special provisions for py2 - not understanding why though

This commit is contained in:
Markus Lampert
2020-10-25 18:56:47 -07:00
parent 982656babe
commit 236f8605cd

View File

@@ -27,6 +27,7 @@ import Part
import Path
import PathScripts.PathGeom as PathGeom
import PathTests.PathTestUtils as PathTestUtils
import sys
vd = None
@@ -44,7 +45,11 @@ def initVD():
vd.construct()
for e in vd.Edges:
e.Color = 0 if e.isPrimary() else 1;
if sys.version_info.major > 2:
e.Color = 0 if e.isPrimary() else 1
else:
e.Color = long(0) if e.isPrimary() else long(1)
vd.colorExterior(2)
vd.colorColinear(3)
vd.colorTwins(4)