I am creating a Python addin button and I would like to reference the path to the layer that is currently in an edit session to the code in the addin button. This way users will be able to use the functionality of the addin in button with a variety of different named layers that have attribute tables with the same headers.
My button currently uses this code.
inFeatures="m8010_seginit_061213" fieldName="LFM" expression=3000 arcpy.CalculateField_management(inFeatures, fieldName, expression, "PYTHON")
I would like to have "inFeatures="CURRENT"" or the path to the current layer is that is open in an edit session.