Fix #29 Lattice2 not working in FC v0.18.1

This commit is contained in:
DeepSOIC 2019-05-20 17:43:38 +03:00
parent abb2e516b1
commit 69274f991d

View File

@ -407,8 +407,14 @@ exportedCommands = [
"Lattice2_RecomputeLocker_ForceRecompute",
"Lattice2_RecomputeLocker_Touch"
]
if int(App.Version()[1]) >= 17:
try:
if float(App.Version()[1]) >= 17.0:
exportedCommands.remove("Lattice2_RecomputeLocker_MakeFeature")
except Exception as err:
App.Console.PrintWarning("Failed to parse version string: {v}".format(v= App.Version()[1]))
#assume modern
exportedCommands.remove("Lattice2_RecomputeLocker_MakeFeature")
class CommandRecomputeGroup:
def GetCommands(self):