<?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: Possible to make tool script path relative? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31138#M2473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;In addition to what Wayne said, you can also [url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000]embed[/url" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000]embed[/url&lt;/A&gt;&lt;SPAN&gt;] the script so that it stays with the the tool.&amp;nbsp; This is a good option if you will not need to alter the code.&amp;nbsp; Another cool thing about this is that you can password protect the code so that only those with access can alter it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 13:33:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-05-24T13:33:16Z</dc:date>
    <item>
      <title>Possible to make tool script path relative?</title>
      <link>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31136#M2471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to make the path to the script for a tool relative rather than absolute? I have users who copy folders with the maps and scripts they need from one network location to another. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 12:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31136#M2471</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2013-05-24T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to make tool script path relative?</title>
      <link>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31137#M2472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, on the General panel of the script tool properties, click on 'Store relative path names (instead of absolute paths)'... the only caveat is that you have to make sure the root folder being copied actually contains the script file.&amp;nbsp; In other words, if copying only part of the contents of the folder and omit to copy the accompanying tool script file, the path will of course be broken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way around that is to create a python toolbox so that the tbx tool interface and source script are bound together...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31137#M2472</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-05-24T13:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to make tool script path relative?</title>
      <link>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31138#M2473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;In addition to what Wayne said, you can also [url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000]embed[/url" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000]embed[/url&lt;/A&gt;&lt;SPAN&gt;] the script so that it stays with the the tool.&amp;nbsp; This is a good option if you will not need to alter the code.&amp;nbsp; Another cool thing about this is that you can password protect the code so that only those with access can alter it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31138#M2473</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-05-24T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to make tool script path relative?</title>
      <link>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31139#M2474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks both. Guess I never saw the relative path checkbox. We're still on 10.0, so I don't think python toolboxes are available at this point. The users do copy the whole folder, with their map templates, scripts, fgdb, etc. This isn't the most space eficient method, but they step all over each other's projects when they work out of a common shared folder and I get called down to fix it for them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 12:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/possible-to-make-tool-script-path-relative/m-p/31139#M2474</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2013-05-28T12:12:45Z</dc:date>
    </item>
  </channel>
</rss>

