print repr(Layer) >>> u"'C:\\WorkSpace\\test workspace\\test.shp'"
import arcpy, os #Read input parameters from script tool LayersList = arcpy.GetParameterAsText(0).split(";") # Process: Add Field for Layer in LayersList: arcpy.AddMessage(repr(Layer)) arcpy.AddField_management(Layer.strip("'"), "DUP", "DOUBLE", 9, "", "", "Dup", "NULLABLE")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.