I have an ArcGIS Pro toolbox tool based on a python script and am trying to have tool validation pre-fill values based on the location of the ArcGIS Toolbox location. Here is a screenshot of the tool:
This is my validation python code:
def updateParameters(self):
    """Modify the values and properties of parameters before internal
    validation is performed.  This method is called whenever a parameter
    has been changed."""
    rootpathname = os.path.dirname(os.path.abspath("__file__"))
    shorepathname = os.path.join(rootpathname, "Data\\Shoreline.gdb")
    templatepathname = os.path.join(rootpathname, "Symbology\\Representation Templates")
    if not self.params[1].altered:
        self.params[1].value = shorepathname
    if not self.params[3].altered:
        self.params[3].value = templatepathname
    return
When I run the tool, neither of the parameters have been updated with the validation values; they simply remain blank. Why are my parameter values not updating?
