<?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 do I make my python script portable for ArcMap users? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-make-my-python-script-portable-for-arcmap/m-p/456388#M20067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using relative paths for the tool and keep your script in same folder (or relative to it) as the *.tbx, then it should work.&amp;nbsp; If the script is located in another location, then it will fail.&amp;nbsp; The easiest way is to put your script and *.tbx in the same location.&lt;/P&gt;&lt;P&gt;Do also note, that don't taint the arcmap toolbox by messing with in Pro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2018 22:40:45 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-11-21T22:40:45Z</dc:date>
    <item>
      <title>How do I make my python script portable for ArcMap users?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-make-my-python-script-portable-for-arcmap/m-p/456387#M20066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the situation: I am using ArcGis Pro to create a tool, but my associate wants to use the tool in ArcMap 10.6.&amp;nbsp;I ensured that my python was written so it could be interpreted by both ArcGIS Pro 2.2 and ArcMap 10.6 by creating a separate tool in the toolbox, but the second was created in ArcMap. Both tools used the same python file, and both functioned properly. I thought I embedded the python file in both tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I troubleshooted by sending the toolbox to another computer via email. The script tool I created in ArcGIS Pro for ArcGIS Pro works. The script tool I created in ArcMap for ArcMap gave me an error that the file does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thought is that when I embedded the python file in each script tool, the tool for ArcGIS Pro kept the file somehow, but the ArcMap tool did not. Maybe I am supposed to store the Python file in the toolbox itself to make it portable for the ArcMap script tool? This is my source for why I suspect this is the case:&amp;nbsp;&lt;A data-saferedirecturl="https://www.google.com/url?q=http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/embedding-scripts-and-password-protecting-tools.htm&amp;amp;source=gmail&amp;amp;ust=1542918096606000&amp;amp;usg=AFQjCNG4nwgu-4pjPS7yqK6R7fB5NSYjoA" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/embedding-scripts-and-password-protecting-tools.htm" style="color: #1155cc; background-color: #ffffff; font-size: small;" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/embedding-scripts-and-password-protecting-tools.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if this is the problem, I do not know how to save the python file in the toolbox. If it not the problem, I don't know what to do to make my script tool for an ArcMap user more portable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 20:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-make-my-python-script-portable-for-arcmap/m-p/456387#M20066</guid>
      <dc:creator>ChristopherHigham1</dc:creator>
      <dc:date>2018-11-21T20:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make my python script portable for ArcMap users?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-make-my-python-script-portable-for-arcmap/m-p/456388#M20067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using relative paths for the tool and keep your script in same folder (or relative to it) as the *.tbx, then it should work.&amp;nbsp; If the script is located in another location, then it will fail.&amp;nbsp; The easiest way is to put your script and *.tbx in the same location.&lt;/P&gt;&lt;P&gt;Do also note, that don't taint the arcmap toolbox by messing with in Pro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 22:40:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-do-i-make-my-python-script-portable-for-arcmap/m-p/456388#M20067</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-21T22:40:45Z</dc:date>
    </item>
  </channel>
</rss>

