Hi All,
Can anyone tell me how to call tool1 from tool2 in the same pyt file? I'm not seeing any documentation for this and my assumption that it would be called like any other tool via arcpy isn't right.
Thanks!
In case anyone else encounters this, I was able to force it with:
pyt_file <SPAN class="operator token">=</SPAN> os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>basename<SPAN class="punctuation token">(</SPAN>__file__<SPAN class="punctuation token">)</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>ImportToolbox<SPAN class="punctuation token">(</SPAN>pyt_file<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.