<?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 In ArcMap, how can I create a script tool that is portable? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656097#M51069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I have developed Python scripts for processing maps.&amp;nbsp; I've created tools in a toolbox that uses them.&amp;nbsp; I have two issues:&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;1.&amp;nbsp; I can easily copy the Python scripts to a different computer.&amp;nbsp; But, after copying the toolbox, the paths to the scripts point to directories on the first machine.&amp;nbsp; I have to recreate each tool pointing to the right script AND redefine parameters, etc.&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;2. Toolboxes seem to be stored in each user's appdata folder.&amp;nbsp; I want any user that needs to manage maps to be able to use the toolbox without needing to make copies for each user.&amp;nbsp; Can I store a toolbox in a single user-independent location?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 01:22:41 GMT</pubDate>
    <dc:creator>CraigPennington</dc:creator>
    <dc:date>2019-01-23T01:22:41Z</dc:date>
    <item>
      <title>In ArcMap, how can I create a script tool that is portable?</title>
      <link>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656097#M51069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I have developed Python scripts for processing maps.&amp;nbsp; I've created tools in a toolbox that uses them.&amp;nbsp; I have two issues:&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;1.&amp;nbsp; I can easily copy the Python scripts to a different computer.&amp;nbsp; But, after copying the toolbox, the paths to the scripts point to directories on the first machine.&amp;nbsp; I have to recreate each tool pointing to the right script AND redefine parameters, etc.&lt;/SPAN&gt;&lt;BR style="color: #4c4c4c; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;2. Toolboxes seem to be stored in each user's appdata folder.&amp;nbsp; I want any user that needs to manage maps to be able to use the toolbox without needing to make copies for each user.&amp;nbsp; Can I store a toolbox in a single user-independent location?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656097#M51069</guid>
      <dc:creator>CraigPennington</dc:creator>
      <dc:date>2019-01-23T01:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: In ArcMap, how can I create a script tool that is portable?</title>
      <link>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656098#M51070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;I found an&amp;nbsp;&lt;/SPAN&gt;easy way to solve this problem.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I stumbled across the fact that I can store a toolbox in a file geodatabase. If I also specify the script path as a relative path and check the checkbox to use relative paths, I can copy and paste the file geodatabase anywhere I want with a consistent folder structure. This preserves the parameter settings and uses the intended script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;Easy, clean, portable without the complexity of creating a package.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656098#M51070</guid>
      <dc:creator>CraigPennington</dc:creator>
      <dc:date>2019-01-23T01:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: In ArcMap, how can I create a script tool that is portable?</title>
      <link>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656099#M51071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative is to simply store the scripts in the same location as the *.tbx… zip everything and ship it.&lt;/P&gt;&lt;P&gt;You just need to make sure that your scripts are set to use 'relative paths' when assigning properties in the toolbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/in-arcmap-how-can-i-create-a-script-tool-that-is/m-p/656099#M51071</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-23T01:26:17Z</dc:date>
    </item>
  </channel>
</rss>

