AnsweredAssumed Answered

Opening Python Code/Script in any mxd????

Question asked by MLCouden on Apr 29, 2013
Latest reply on Apr 30, 2013 by MLCouden
What would I change my top mxd line to have it open in any mxd. I don't need parameters I just need it to run in any mxd I open.

import arcpy, traceback  mxd = arcpy.mapping.MapDocument(r"K:\TASS\2 - GEO-DATA PROCESSING SUPPORT\MICHELLE'S WORK_ENTER NOT!!\Work Folder\Python Programming\Wayne's Tools\Abilene_Base_Map.mxd") lstLayers = arcpy.mapping.ListLayers(mxd)