Skip to main content
added 77 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

You're missing a colon. if lyr.datasetName == inputlayer:

Also, the last line MXD.save() should be indented an additional 4 spaces.

You're missing a colon. if lyr.datasetName == inputlayer:

You're missing a colon. if lyr.datasetName == inputlayer:

Also, the last line MXD.save() should be indented an additional 4 spaces.

Source Link
blah238
  • 35.9k
  • 8
  • 96
  • 200

You're missing a colon. if lyr.datasetName == inputlayer: