Solved! Go to Solution.
So I need the convienience to run the model from arcmap, I need to open the layerfile in arcmap and drag drop all contents to the dialogoue box and run the model.
getpath(r"%input layer%")
def getpath(lyr): import arcpy return arcpy.Describe(lyr).catalogPath
So I need the convienience to run the model from arcmap, I need to open the layerfile in arcmap and drag drop all contents to the dialogoue box and run the model.
getpath(r"%input layer%")
def getpath(lyr): import arcpy return arcpy.Describe(lyr).catalogPath