summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2017-08-15 19:50:10 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2017-08-15 19:50:10 -0400
commit2d4e69871b6529686eb88bf28d6410204c660a87 (patch)
tree82d1f9db00cfff38c293ce65c72d2130463c3f33 /cmd2.py
parent7ef6a8d1cd9802eacb4cb99d1db0c75d06ad75be (diff)
downloadcmd2-git-2d4e69871b6529686eb88bf28d6410204c660a87.tar.gz
Updated comment
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index baacabdd..09412ab5 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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: