Using the QGIS 3.x processing framework, given a vector layer as an input parameter:
(from the default script template)
def initAlgorithm(self, config=None):
self.addParameter(
QgsProcessingParameterFeatureSource(
self.INPUT,
self.tr('Input layer'),
[QgsProcessing.TypeVectorAnyGeometry]
)
)
How can I get this layer's source file path as a string (assuming that only file-based data sources will be used, not PostGIS tables, etc)?