Special provisions for py2 - not understanding why though
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user