The script inside the toolbox works properly when running alone. However when I open the toolbar in arcmap always a [Missing] Error. The following is my entire add-in .py? I cannot for the life of me figure out what is missing here?...
import os
import arcpy
import pythonaddins
relPath = os.path.dirname(__file__)
class ButtonClass1(object):
"""Implementation for Get IR Count_addin.button (Button)"""
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
toolPath = relPath + r"\Custom Tools\Get IR Count\Install\GetIR.tbx"
pythonaddins.GPToolDialog(toolPath,"Get IR Count")