After making a script tool I noticed that the drag and drop from the table of contents (TOC) is not working. It is placing only the name and NOT the path.
Can I do something to fix this?
I think it is likely you made the script tool parameters as data type Feature Class or Raster Dataset. To support drag and drop of map layers, you need to make the data type Feature Layer or Raster Layer.
Thank you Drew,
You are correct.
Reading about the did not help me with this but i am happy i know now.
Data types: Defining parameter data types in a Python toolbox—Geoprocessing and Python | ArcGIS Desktop
Retrieving data ...