AnsweredAssumed Answered

Python - How to customise result in geoprocessing dialog window

Question asked by ccnrm on Apr 12, 2015
Latest reply on Apr 13, 2015 by modybsystematics-co-il-esridist

This is my python script code in ArcGIS 10.3;

 

projectResult = arcpy.Project_management(fc, outFolder + "\\" + fc, template) 
# Name of shapefiles re-projected in result dialog window      
arcpy
.AddMessage(projectResult)

Which gives me this in the geoprocessing dialog result box;

 

C:\GIS_Result\abc.shp 
C
:\GIS_Result\1234.shp
C
:\GIS_Result\zyx.shp
C
:\GIS_Result\987.shp

Can I remove the filepath to give me just the filename?;

 

 

abc.shp
1234.shp
zyx.shp
987.shp

Outcomes