Using ArcGIS 10.4 for Desktop, I am, for the first time, trying to work with a Python Toolbox (*.pyt).
I have edited the template like this:
import arcpy class StackProfile(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "TOOLBOX LABEL PROPERTY" self.alias = "TOOLBOX ALIAS PROPERTY" # List of tool classes associated with this toolbox self.tools = [SP] class SP(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Stack Profile for Multiple Elevations" self.description = "" self.canRunInBackground = False
I tried to rename the toolbox name, label and alias. But in toolbox Properties it seems only the name is changed not label, or alias or even not the tool name.
It also did not change the tool name.
What could be the possible reason for this problem?