<?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 edit a script tool that only has .pyd and .pyc files? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010040#M59291</link>
    <description>&lt;P&gt;pyd&amp;nbsp; .... like&lt;/P&gt;&lt;P&gt;&amp;nbsp;C:\&lt;EM&gt;install folder&lt;/EM&gt;\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgisscripting\_arcgisscripting.pyd&lt;/P&gt;&lt;P&gt;which is one of the files when you &lt;STRONG&gt;import arcpy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As for pyc...&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/2998215/if-python-is-interpreted-what-are-pyc-files" target="_blank"&gt;compiled - If Python is interpreted, what are .pyc files? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;An interesting read and there are many links about pyc, pyd etc and whether you can decompile them etc.&lt;/P&gt;&lt;P&gt;In short... not really worth the try on the practical level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are compiled for a reason, one of them being to retain ownership of the code.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 02:39:26 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-12-16T02:39:26Z</dc:date>
    <item>
      <title>How to edit a script tool that only has .pyd and .pyc files?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010024#M59290</link>
      <description>&lt;P&gt;I know this is only tangentially related to ArcGIS, but I thought I'd give this a try and see if anyone could help.&amp;nbsp; I need to edit a script/tool created by someone who no longer works at my organization.&amp;nbsp; The tool has a simple GUI that staff use to "promote" a Geocortex site (which contains ArcGIS map services) from our dev server to our prod server.&amp;nbsp; This basically just involves copying a folder.&amp;nbsp; We need the tool because staff aren't given direct access to the prod server.&amp;nbsp; My goal is to simply add the names of our new servers so users can select those.&lt;/P&gt;&lt;P&gt;The folder that contains all the tool's files does not have a .py file.&amp;nbsp; It only&amp;nbsp; has lots of .pyd and .pyc and .dll files, plus an .exe which is the GUI.&amp;nbsp; I have no idea how the previous employee built it.&amp;nbsp; Those files are not human readable or editable.&amp;nbsp; Is there any way to edit any of it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllenDailey1_0-1608080808715.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2327i5C003BC60F22E8D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AllenDailey1_0-1608080808715.png" alt="AllenDailey1_0-1608080808715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I noticed that the copysites.exe.log file contains text that refers to a file called copysites.py, but that does not exist in the folder or any of the subfolders.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AllenDailey1_1-1608080921302.png" style="width: 495px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2328i8F6B3B347F72FF0F/image-dimensions/495x245?v=v2" width="495" height="245" role="button" title="AllenDailey1_1-1608080921302.png" alt="AllenDailey1_1-1608080921302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 01:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010024#M59290</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2020-12-16T01:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit a script tool that only has .pyd and .pyc files?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010040#M59291</link>
      <description>&lt;P&gt;pyd&amp;nbsp; .... like&lt;/P&gt;&lt;P&gt;&amp;nbsp;C:\&lt;EM&gt;install folder&lt;/EM&gt;\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgisscripting\_arcgisscripting.pyd&lt;/P&gt;&lt;P&gt;which is one of the files when you &lt;STRONG&gt;import arcpy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As for pyc...&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/2998215/if-python-is-interpreted-what-are-pyc-files" target="_blank"&gt;compiled - If Python is interpreted, what are .pyc files? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;An interesting read and there are many links about pyc, pyd etc and whether you can decompile them etc.&lt;/P&gt;&lt;P&gt;In short... not really worth the try on the practical level.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are compiled for a reason, one of them being to retain ownership of the code.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 02:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010040#M59291</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-16T02:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit a script tool that only has .pyd and .pyc files?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010126#M59297</link>
      <description>&lt;P&gt;Looks like he might have used QTCreator or QT Designer to make the GUI part - can you access his computer and see if QT has a recent file that points to a .UI extention?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 13:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1010126#M59297</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2020-12-16T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit a script tool that only has .pyd and .pyc files?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1011481#M59348</link>
      <description>&lt;P&gt;Thanks, Dan.&amp;nbsp; That's good to know about the files being compiled for a reason - makes sense.&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 16:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1011481#M59348</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2020-12-21T16:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit a script tool that only has .pyd and .pyc files?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1011484#M59349</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; Turns out we were able to find a folder of his backup files, even though we can't access his "real" files, and there was a copy of the script files.&amp;nbsp; It included a .py file that seems to be the basis for most of the rest of it, so I have been working on editing it.&amp;nbsp; You were right, he used QT Designer, I discovered, and there were a couple of .ui files in the folder we found; your hints were helpful!&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 16:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-edit-a-script-tool-that-only-has-pyd-and/m-p/1011484#M59349</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2020-12-21T16:59:31Z</dc:date>
    </item>
  </channel>
</rss>

