<?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: How to import a Python script into ArcGIS in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640797#M49931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to call &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcpy.ImportToolbox(r"c:\path\to\toolbox.tbx")&lt;/SPAN&gt;&lt;SPAN&gt; before calling the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jun 2013 01:23:51 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2013-06-21T01:23:51Z</dc:date>
    <item>
      <title>How to import a Python script into ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640796#M49930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a python script tool that is going to be distributed online, and I want it to be able to be called from the ArcMap/Catalog python window (without having to include the function). If I drag the tool into the python window, "arcpy.ClipTIF(" appears, but when I try to execute the line of code with all of the appropriate attributes, I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'module' object has no attribute 'ClipTIF'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI - "ClipTIF" is the name of my script tool and "clipTIF" is the name of my script's function. Neither work in the aforementioned line of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Question: How do I call the function from my python script tool in the ArcGIS python window? &lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brittany&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 01:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640796#M49930</guid>
      <dc:creator>BrittanyGale</dc:creator>
      <dc:date>2013-06-21T01:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a Python script into ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640797#M49931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to call &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcpy.ImportToolbox(r"c:\path\to\toolbox.tbx")&lt;/SPAN&gt;&lt;SPAN&gt; before calling the tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 01:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640797#M49931</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-06-21T01:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a Python script into ArcGIS</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640798#M49932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 15:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-python-script-into-arcgis/m-p/640798#M49932</guid>
      <dc:creator>BrittanyGale</dc:creator>
      <dc:date>2013-06-21T15:58:10Z</dc:date>
    </item>
  </channel>
</rss>

