<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to reference a tool in same toolbox (pyt)? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-reference-a-tool-in-same-toolbox-pyt/m-p/445833#M34954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jul 2019 17:45:19 GMT</pubDate>
    <dc:creator>CharlieHarper3</dc:creator>
    <dc:date>2019-07-18T17:45:19Z</dc:date>
    <item>
      <title>How to reference a tool in same toolbox (pyt)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-reference-a-tool-in-same-toolbox-pyt/m-p/445833#M34954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 17:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-reference-a-tool-in-same-toolbox-pyt/m-p/445833#M34954</guid>
      <dc:creator>CharlieHarper3</dc:creator>
      <dc:date>2019-07-18T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a tool in same toolbox (pyt)?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-reference-a-tool-in-same-toolbox-pyt/m-p/445834#M34955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case anyone else encounters this, I was able to force it with:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;pyt_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;basename&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;__file__&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ImportToolbox&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pyt_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-reference-a-tool-in-same-toolbox-pyt/m-p/445834#M34955</guid>
      <dc:creator>CharlieHarper3</dc:creator>
      <dc:date>2021-12-11T19:55:43Z</dc:date>
    </item>
  </channel>
</rss>

