<?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 Refresh .pyt files in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756021#M58327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running a .pyt file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I edit it, and then when I re-run the script in ARC: It acts as if I have not modified the source code and runs the same errors. It even works if I delete the source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get it to either&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) check the source code every time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) make it refresh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 16:04:50 GMT</pubDate>
    <dc:creator>DylanLinet</dc:creator>
    <dc:date>2013-02-01T16:04:50Z</dc:date>
    <item>
      <title>Refresh .pyt files</title>
      <link>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756021#M58327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running a .pyt file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I edit it, and then when I re-run the script in ARC: It acts as if I have not modified the source code and runs the same errors. It even works if I delete the source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get it to either&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) check the source code every time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) make it refresh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756021#M58327</guid>
      <dc:creator>DylanLinet</dc:creator>
      <dc:date>2013-02-01T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh .pyt files</title>
      <link>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756022#M58328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the tip here, apparently a 'reload' is necessary?&amp;nbsp; See the webhelp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000038000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000038000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is, the reload function may be necessary if importing any other modules/scripts into from your pyt code.&amp;nbsp; Otherwise, your editor may be still open...it refreshes the pyt within ArcGIS when you close it, according to the doc.&amp;nbsp; Supposedly, you can manually refresh it as well from Catalog as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 16:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756022#M58328</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-02-01T16:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh .pyt files</title>
      <link>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756023#M58329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Try the tip here, apparently a 'reload' is necessary?&amp;nbsp; See the webhelp:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000038000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000038000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That is, the reload function may be necessary if importing any other modules/scripts into from your pyt code.&amp;nbsp; Otherwise, your editor may be still open...it refreshes the pyt within ArcGIS when you close it, according to the doc.&amp;nbsp; Supposedly, you can manually refresh it as well from Catalog as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. This plus a little more digging helped me solve my problem. Turns out there was a syntax error in the script. For some reason it was not reported at run-time (maybe it never is?) and the script just used a previous version that was stored in memory. Once I checked for syntax errors (and fixed them) the script began loading the most recent version again (after of course closing out of my editor).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 19:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/refresh-pyt-files/m-p/756023#M58329</guid>
      <dc:creator>DylanLinet</dc:creator>
      <dc:date>2013-02-01T19:55:12Z</dc:date>
    </item>
  </channel>
</rss>

