<?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 Re: Reloading a python toolbox during developement in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reloading-a-python-toolbox-during-developement/m-p/292725#M22663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you are using python 2.7 presumably, you need to include 'reload' to ensure that they are reloaded during development&lt;/P&gt;&lt;P&gt;add the line&lt;/P&gt;&lt;P&gt;import blah #your import tools/modules line&lt;/P&gt;&lt;P&gt;reload(blah)&amp;nbsp; # reload them during the development stage and you can comment it out later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/functions.html#reload" title="https://docs.python.org/2/library/functions.html#reload"&gt;2. Built-in Functions — Python 2.7.12rc1 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In any event, once a module is imported, then it won't automatically reload once it is loaded unlessed forced.&lt;/P&gt;&lt;P&gt;There are fancier ways, but this is easiest to remember.&amp;nbsp; Things change in python 3.4.x&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3.4/library/2to3.html?highlight=reload#2to3fixer-reload" title="https://docs.python.org/3.4/library/2to3.html?highlight=reload#2to3fixer-reload"&gt;26.6. 2to3 - Automated Python 2 to 3 code translation — Python 3.4.5rc1 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;fixes&amp;nbsp;&amp;nbsp; Converts &lt;CODE class="py docutils xref py-func literal" style="padding: 0 1px; font-size: 15px; font-family: monospace, sans-serif;"&gt;&lt;SPAN class="pre"&gt;&lt;SPAN class="highlighted" style="background-color: #fbe54e;"&gt;reload&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/CODE&gt; to &lt;A class="reference internal" href="https://docs.python.org/3.4/library/imp.html#imp.reload" style="color: #6363bb;" title="imp.reload"&gt;&lt;CODE class="py docutils xref py-func literal" style="padding: 0 1px; font-size: 15px; font-family: monospace, sans-serif;"&gt;&lt;SPAN class="pre"&gt;imp.&lt;SPAN class="highlighted" style="background-color: #fbe54e;"&gt;reload&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;&lt;DL class="2to3fixer" style="margin-bottom: 15px; color: #222222; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px;"&gt;&lt;DD style="margin-top: 3px; margin-bottom: 10px; margin-left: 30px; text-align: justify;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;DL class="2to3fixer" style="margin-bottom: 15px; color: #222222; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px;"&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 23:13:58 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-06-13T23:13:58Z</dc:date>
    <item>
      <title>Reloading a python toolbox during developement</title>
      <link>https://community.esri.com/t5/python-questions/reloading-a-python-toolbox-during-developement/m-p/292724#M22662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I started developing a python toolbox for ArcMap 10.4. From the toolbox, I import modules, which are the tools. The idea is to have one file for each Tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that even if I click "refresh" on the toolbox, it doesn't reload the tools inside. I have to close ArcMap and re-open it. That is not very convenient...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 20:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reloading-a-python-toolbox-during-developement/m-p/292724#M22662</guid>
      <dc:creator>PatricePineault1</dc:creator>
      <dc:date>2016-06-13T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reloading a python toolbox during developement</title>
      <link>https://community.esri.com/t5/python-questions/reloading-a-python-toolbox-during-developement/m-p/292725#M22663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you are using python 2.7 presumably, you need to include 'reload' to ensure that they are reloaded during development&lt;/P&gt;&lt;P&gt;add the line&lt;/P&gt;&lt;P&gt;import blah #your import tools/modules line&lt;/P&gt;&lt;P&gt;reload(blah)&amp;nbsp; # reload them during the development stage and you can comment it out later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/functions.html#reload" title="https://docs.python.org/2/library/functions.html#reload"&gt;2. Built-in Functions — Python 2.7.12rc1 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;In any event, once a module is imported, then it won't automatically reload once it is loaded unlessed forced.&lt;/P&gt;&lt;P&gt;There are fancier ways, but this is easiest to remember.&amp;nbsp; Things change in python 3.4.x&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3.4/library/2to3.html?highlight=reload#2to3fixer-reload" title="https://docs.python.org/3.4/library/2to3.html?highlight=reload#2to3fixer-reload"&gt;26.6. 2to3 - Automated Python 2 to 3 code translation — Python 3.4.5rc1 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;fixes&amp;nbsp;&amp;nbsp; Converts &lt;CODE class="py docutils xref py-func literal" style="padding: 0 1px; font-size: 15px; font-family: monospace, sans-serif;"&gt;&lt;SPAN class="pre"&gt;&lt;SPAN class="highlighted" style="background-color: #fbe54e;"&gt;reload&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/CODE&gt; to &lt;A class="reference internal" href="https://docs.python.org/3.4/library/imp.html#imp.reload" style="color: #6363bb;" title="imp.reload"&gt;&lt;CODE class="py docutils xref py-func literal" style="padding: 0 1px; font-size: 15px; font-family: monospace, sans-serif;"&gt;&lt;SPAN class="pre"&gt;imp.&lt;SPAN class="highlighted" style="background-color: #fbe54e;"&gt;reload&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;&lt;DL class="2to3fixer" style="margin-bottom: 15px; color: #222222; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px;"&gt;&lt;DD style="margin-top: 3px; margin-bottom: 10px; margin-left: 30px; text-align: justify;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;DL class="2to3fixer" style="margin-bottom: 15px; color: #222222; font-family: 'Lucida Grande', Arial, sans-serif; font-size: 16px;"&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 23:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reloading-a-python-toolbox-during-developement/m-p/292725#M22663</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-13T23:13:58Z</dc:date>
    </item>
  </channel>
</rss>

