Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Replicate tool within Python Toolbox with some changes to behaviour

$
0
0
Hi,

I have two tools within a single Python Toolbox. Currently the second tool just references the first ('class Tool2(Tool):')and therefore is a direct copy. How do I implement some changes to the function of this second tool? Do I have to have the whole code repeated or is there a way to just write the changes within 'def execute...'

Ciao for now
Stephen

Viewing all articles
Browse latest Browse all 2485

Trending Articles