Created
March 12, 2014 04:19
-
-
Save sshopov/9500771 to your computer and use it in GitHub Desktop.
Listing all tools for every toolbox in ArcGIS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import arcpy | |
for toolbox in arcpy.ListToolboxes(): | |
wildcard = re.search(r"\((\w+)\)", toolbox).group(1) | |
for tool in arcpy.ListTools("*_%s"%wildcard): | |
print toolbox, tool, arcpy.Usage(tool) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment