Jensen.Connor

Open script tool in arcpy

Discussion created by Jensen.Connor on Dec 2, 2013
Latest reply on Dec 6, 2013 by Jensen.Connor
Hi,

I am trying to open a script I have written and saved as a script tool inside of a toolbox. I want to open the script when a user clicks on a button on my python addin toolbar. I have tried using the following line:
pythonaddins.GPToolDialog(r'C:\\My_toolboxes\\StripTrialTools.tbx','SplitLayerByAttributes')


Where the script is named "SplitLayerByAttributes". I have had no luck with this so far, any suggestions would be much appreciated.

Thanks,

Outcomes