<?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: Error Pasting to Clipboard with Python in ArcMap 10.6 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336080#M26347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does it work in the&amp;nbsp;ArcMap 10.2.2 Python Window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2018 10:43:46 GMT</pubDate>
    <dc:creator>PhilipJutson</dc:creator>
    <dc:date>2018-02-26T10:43:46Z</dc:date>
    <item>
      <title>Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336076#M26343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Error Pasting to Clipboard with Python in ArcMap 10.6&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I have been testing an existing Python Add-In written for ArcMap 10.2 that throws an error in ArcMap 10.6. The error was &lt;STRONG&gt;'module' object has no attribute 'argv'&lt;/STRONG&gt;.&amp;nbsp; After checking the web it looked like code I used to past to the clipboard with Tkinker was the problem. To test I copied the following code from the Add-In and pasted into the Python Window and an error was generated on usage.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt; import Tkinter&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt; def toClipboard(txt):&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip = Tkinter.Tk()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.withdraw()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.clipboard_clear()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.clipboard_append(txt)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.destroy()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt; toClipboard("Hello")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Runtime error&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 2, in toClipboard&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\lib-tk\Tkinter.py", line 1814, in __init__&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseName = os.path.basename(sys.argv[0])&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;AttributeError: 'module' object has no attribute 'argv'&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;In ArcMap 10.2 this code runs without a problem. The wisdom of the web suggests that a similar problem happened in ArcMap 10.1 and could be to do with the way sys has been altered for ArcGIS.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Have I found a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336076#M26343</guid>
      <dc:creator>PhilipJutson</dc:creator>
      <dc:date>2018-02-23T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336077#M26344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sys.argv[0] is the script that the function is running from.&lt;/P&gt;&lt;P&gt;Create a script and try it.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
script &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;script&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# ---- result yours will show the full path, then the script name&lt;/SPAN&gt;
Drive&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path to &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;script named&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;untitled0&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;py&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;From the console, there is no script&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"sys.argv[0]: {!r:}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;argv&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336077#M26344</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336078#M26345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for taking the time to reply.&amp;nbsp; I have tried your last example in ArcMap 10.2.2 and 10.6. The results were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ArcMap 10.6 Python Window&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; print("sys.argv[0]: {!r:}".format(str(sys.argv[0])))
Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: 'module' object has no attribute 'argv'
&amp;gt;&amp;gt;&amp;gt; type(sys.argv[0])
Runtime error 
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;
AttributeError: 'module' object has no attribute 'argv'&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;ArcMap 10.2.2 Python Window&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; print("sys.argv[0]: {!r:}".format(str(sys.argv[0])))
sys.argv[0]: ''
&amp;gt;&amp;gt;&amp;gt; type(sys.argv[0])
&amp;lt;type 'str'&amp;gt;&lt;/PRE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;sys.argv[0] is a null string in the 10.2.2 Python window and does not exist in 10.6 so there is a difference between ArcMap versions.&amp;nbsp; However the main question is how to get the code working in a Python Add-In.&amp;nbsp; It is just that I found the Python window handy for testing small bits of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I move forward?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code does not use sys.argv. It is an ArcMap/Python supplied library (Tkinter) that uses sys.argv and I would&lt;/P&gt;&lt;P&gt;prefer to not have to alter underlying standard libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has there been a change in Python between&amp;nbsp;2.7.5 to 2.7.14 that changes how sys.argv is handled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336078#M26345</guid>
      <dc:creator>PhilipJutson</dc:creator>
      <dc:date>2021-12-11T15:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336079#M26346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I notice the &amp;gt;&amp;gt;&amp;gt; 's in your examples which means you aren't running it from within a script but from the command prompt.&lt;/P&gt;&lt;P&gt;the sys.argv[0] trick only works when you load a script, and run it with&amp;nbsp;&lt;/P&gt;&lt;P&gt;import sys&lt;/P&gt;&lt;P&gt;as one of your imports,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no point testing it from the command prompt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 10:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336079#M26346</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-26T10:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336080#M26347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does it work in the&amp;nbsp;ArcMap 10.2.2 Python Window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 10:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336080#M26347</guid>
      <dc:creator>PhilipJutson</dc:creator>
      <dc:date>2018-02-26T10:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336081#M26348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would have to backtrack through the changelog for python 2.7 to see when/where any changes occurred.&amp;nbsp; I suspect that it may have been an error or something.&lt;/P&gt;&lt;P&gt;I just wouldn't use sys.argv[0] at the command prompt in any event, besides in python 3.6 (.7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sys.argv[0]&lt;BR /&gt;Out[4]: ''&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it may have been returned to its original state somewhere in the intervening 10 years that python 3.x has been out.&lt;/P&gt;&lt;P&gt;As for trying to avoid importing the sys module,.... don't,&amp;nbsp; it will likely be imported somewhere along your code stream so I find it best to use it as one of my base imports in any script or module I am using to ensure that it has claimed namespace within the python environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 10:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336081#M26348</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-02-26T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error Pasting to Clipboard with Python in ArcMap 10.6</title>
      <link>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336082#M26349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hi Dan&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I will make a note of your warning about Python 3. I’m not sure when ArcGIS will switch to Python 3 so I will be focusing on 2.7 as long as it is still being used.&amp;nbsp; Besides, having waited from 10.2 till 10.6 before upgrading, I cannot see the organisation I work for doing another&amp;nbsp;upgrade&amp;nbsp;for a while.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I have managed to come up with a practical solution this morning. In ArcMap 10.2.2 sys.argv[0] is an empty string&amp;nbsp;so I tried the following:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt; t= Tkinter.Tk(baseName='')&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;gt;&amp;gt;&amp;gt; del t&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;There were no errors so I altered my snippet of code to the following:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;import Tkinter&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;def toClipboard(txt):&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip = Tkinter.Tk(baseName='')&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.withdraw()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.clipboard_clear()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.clipboard_append(txt)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clip.destroy()&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This now copies to the clip board in the ArcMap 10.6 Python Window and behaves as I am used to In ArcMap 10.2. Maybe it isn’t the best way of doing it but it works and I don’t have a lot of time before 10.6 is rolled out in my organisation.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN&gt;I had a quick look at the Python docs for Tkinter (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdocs.python.org%2F2%2Flibrary%2Ftkinter.html" rel="nofollow" target="_blank"&gt;https://docs.python.org/2/library/tkinter.html&lt;/A&gt;&lt;SPAN&gt;) and a quick scan had no warnings about sys.argv[0].&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 11:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-pasting-to-clipboard-with-python-in-arcmap/m-p/336082#M26349</guid>
      <dc:creator>PhilipJutson</dc:creator>
      <dc:date>2018-02-26T11:28:57Z</dc:date>
    </item>
  </channel>
</rss>

