warning on duplicate zoneNode

This commit is contained in:
Darren Ranalli 2003-11-09 02:35:11 +00:00
parent 4e398a2747
commit 484fec162c
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,9 @@ def getZoneNum2Node(levelModel):
continue
num = int(name[:numDigits])
# do we already have a ZoneNode for this zone num?
assert not num in num2node
if num in num2node:
print 'warning: zone %s already assigned to %s. ignoring %s' % (
num, num2node[num], potentialNode)
num2node[num] = potentialNode
return num2node

View File

@ -19,7 +19,7 @@ def makeNewSpec(filename, modelPath, entTypeModule=EntityTypes):
import SpecUtil
import SellbotLegFactorySpec
import FactoryEntityTypes
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, 'phase_9/models/cogHQ/newModel')
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, optional newModelPath)
"""
def updateSpec(specModule, entTypeModule=EntityTypes, modelPath=None):