Is it possible to nest toolsets within a Python toolbox?

421
2
Jump to solution
08-07-2014 09:28 AM
PhilipGriffith
New Contributor III

I'd like to have multiple levels of toolsets within a Python Toolbox. Is this possible? If so, how?

Thanks for the help!

Philip

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DavidWynne
Esri Contributor

Hi Philip,

In the tool's __init__, assign the name you want to self.category.  If you want to include extra toolset levels just add a slash between the toolset names.

for example:

self.category = r'one\two'

-Dave

View solution in original post

2 Replies
DavidWynne
Esri Contributor

Hi Philip,

In the tool's __init__, assign the name you want to self.category.  If you want to include extra toolset levels just add a slash between the toolset names.

for example:

self.category = r'one\two'

-Dave

View solution in original post

PhilipGriffith
New Contributor III

Hi Dave,

I knew self.category required a string, but didn't think to include a backslash to separate the characters. This was just what I needed. Thanks!

-Philip