I use a python script tool in ArcMap which has two input parameters. The tool only allows to use shapefiles as input. My problem is, that the data I use is organized in feature classes within a geodatabase. Is there a possibility to change the code so that the tool works either with shapefiles and also with (polygon) feature classes? I thought, maybe if the tool recognizes that the input data is a feature class it can automatically convert it like with FeatureClassToShapefile_conversion.
Thanks in advance.