diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2017-08-15 19:50:10 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2017-08-15 19:50:10 -0400 |
commit | 2d4e69871b6529686eb88bf28d6410204c660a87 (patch) | |
tree | 82d1f9db00cfff38c293ce65c72d2130463c3f33 /cmd2.py | |
parent | 7ef6a8d1cd9802eacb4cb99d1db0c75d06ad75be (diff) | |
download | cmd2-git-2d4e69871b6529686eb88bf28d6410204c660a87.tar.gz |
Updated comment
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -46,9 +46,11 @@ from optparse import make_option import pyparsing import pyperclip -# Workaround for gtk interfering when printing from background thread while main -# thread is blocking in raw_input() in Python 2 on Linux when gtk is installed +# On some systems, pyperclip will import gtk for its clipboard functionality. +# The following code is a workaround for gtk interfering with printing from a background +# thread while the CLI thread is blocking in raw_input() in Python 2 on Linux. try: + # noinspection PyUnresolvedReferences import gtk gtk.set_interactive(0) except ImportError: |