<?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: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx), in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50050#M3923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000"&gt;embedding scripts&lt;/A&gt;&lt;SPAN&gt; in the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 02:12:12 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2013-05-20T02:12:12Z</dc:date>
    <item>
      <title>embedding the ???code??? (*.py) with the ???script tool??? (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50048#M3921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;embedding the ???code??? (*.py) with the ???script tool??? (*.tbx),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I???m wondering if there is a way to keep the ???code??? (*.py) with the ???script tool??? ??? (*.tbx).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It happens very often that the script tool is copied without its code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24460[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then how this code can be permanently embedded in the script tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 19:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50048#M3921</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-05-18T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50049#M3922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;check out Python toolboxes ( *.pyt )&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000022000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001500000022000000&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;read carefully&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 20:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50049#M3922</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2013-05-18T20:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50050#M3923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000"&gt;embedding scripts&lt;/A&gt;&lt;SPAN&gt; in the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 02:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50050#M3923</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-05-20T02:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50051#M3924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note that you can only do this in v10.1. The embedding of the .py code into a .tbx is pretty nice as it obfuscates the code as well, rendering it unreadable to general end users.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 15:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50051#M3924</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-05-20T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50052#M3925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;See &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//005700000017000000"&gt;embedding scripts&lt;/A&gt; in the help.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Dan, Luke and Chris for help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then all what I need is just to import the code. in this case, do we still need to go for the *.pyt option?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24641[/ATTACH], [ATTACH=CONFIG]24643[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 15:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50052#M3925</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-05-24T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50053#M3926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I think you're confusing Python toolboxes and 'regular' system toolboxes... looks like you're going for the 'embed' option, if you right-click the script tool (not the py source file), then you can 'import script', the option only available beginning at 10.1 (as I learned from Caleb today, so thanks to him).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have 10.1, but you say you do....and according to the documentation it's a 2 step process!&amp;nbsp; (the 2nd step is clicking 'OK' from the dialog box that opens ??)&amp;nbsp; Afterwards, it's another 2 step process to set a password, so I understand.&amp;nbsp; I think the checkmark goes to Luke on this one.&lt;/SPAN&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; ...so it looks to me from your attached pics that you've already done the import?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 17:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50053#M3926</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-05-24T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50054#M3927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, I think you're confusing Python toolboxes and 'regular' system toolboxes... looks like you're going for the 'embed' option, if you right-click the script tool (not the py source file), then you can 'import script', the option only available beginning at 10.1 (as I learned from Caleb today, so thanks to him).&lt;BR /&gt;&lt;BR /&gt;I don't have 10.1, but you say you do....and according to the documentation it's a 2 step process!&amp;nbsp; (the 2nd step is clicking 'OK' from the dialog box that opens ??)&amp;nbsp; Afterwards, it's another 2 step process to set a password, so I understand.&amp;nbsp; I think the checkmark goes to Luke on this one.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Wayne&lt;BR /&gt;&lt;BR /&gt;EDIT:&amp;nbsp; ...so it looks to me from your attached pics that you've already done the import?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Wayne,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why I wanted to know about these two options that allow keeping the script with the tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*.pyt option&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Import option&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 04:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50054#M3927</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-05-25T04:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50055#M3928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To be clear:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Python toolbox (pyt) is a whole 'new animal', the entire toolbox is written in Python, even has a different icon in ArcToolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tried it out yet, I admit, but the webhelp link below is very interesting - a comparison between the 2.&amp;nbsp; The way I think of it is it depends on where the customizations you made are 'hitched' to the core system software ESRI made -- so apparently the arcpy development framework has been extended to 'take over' where the system was previously hitched....and apparently with new capabilities as well (see the link).&amp;nbsp; More compelling reasons for me to get on with my next upgrade, in my production mode I'll probably skip to 10.2 -- ah, but that's another story.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Comparing custom and Python toolboxes &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Creating tools&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002r000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002r000000&lt;/A&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>Sat, 25 May 2013 10:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50055#M3928</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-05-25T10:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: embedding the �??code�?� (*.py) with the �??script tool�?� (*.tbx),</title>
      <link>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50056#M3929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To be clear:&lt;BR /&gt;The Python toolbox (pyt) is a whole 'new animal', the entire toolbox is written in Python, even has a different icon in ArcToolbox.&lt;BR /&gt;&lt;BR /&gt;I haven't tried it out yet, I admit, but the webhelp link below is very interesting - a comparison between the 2.&amp;nbsp; The way I think of it is it depends on where the customizations you made are 'hitched' to the core system software ESRI made -- so apparently the arcpy development framework has been extended to 'take over' where the system was previously hitched....and apparently with new capabilities as well (see the link).&amp;nbsp; More compelling reasons for me to get on with my next upgrade, in my production mode I'll probably skip to 10.2 -- ah, but that's another story.&lt;BR /&gt;&lt;BR /&gt;Comparing custom and Python toolboxes &lt;BR /&gt;Desktop » Geoprocessing » Creating tools&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002r000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000002r000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Wayne&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much Whitley for the elaboration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think we will be all switching to *.pyt due to the new capabilities included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 17:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/embedding-the-code-py-with-the-script-tool-tbx/m-p/50056#M3929</guid>
      <dc:creator>JamalNUMAN</dc:creator>
      <dc:date>2013-05-25T17:51:25Z</dc:date>
    </item>
  </channel>
</rss>

