<?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 does running a script as a tool alter python import behavior? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/does-running-a-script-as-a-tool-alter-python/m-p/492680#M38622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have attempted to create a common "shared_variables.py" module so that I can share information between a python script tool and an outside python interface.&amp;nbsp; It seems that when the script tool is executed and the "import shared_variables" line is executed, rather than creating access to the data within 'shared_variables.py' it actually creates a copy of 'shared_variables.py' and grants access to the copy.&amp;nbsp; This is not how python is supposed to work, but is this how python works within arcgis, specifically the script tools?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 20:55:15 GMT</pubDate>
    <dc:creator>BryanTaylor</dc:creator>
    <dc:date>2014-04-09T20:55:15Z</dc:date>
    <item>
      <title>does running a script as a tool alter python import behavior?</title>
      <link>https://community.esri.com/t5/python-questions/does-running-a-script-as-a-tool-alter-python/m-p/492680#M38622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have attempted to create a common "shared_variables.py" module so that I can share information between a python script tool and an outside python interface.&amp;nbsp; It seems that when the script tool is executed and the "import shared_variables" line is executed, rather than creating access to the data within 'shared_variables.py' it actually creates a copy of 'shared_variables.py' and grants access to the copy.&amp;nbsp; This is not how python is supposed to work, but is this how python works within arcgis, specifically the script tools?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 20:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/does-running-a-script-as-a-tool-alter-python/m-p/492680#M38622</guid>
      <dc:creator>BryanTaylor</dc:creator>
      <dc:date>2014-04-09T20:55:15Z</dc:date>
    </item>
  </channel>
</rss>

