We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59963e3 + 7486ea4 commit f11dc08Copy full SHA for f11dc08
pandas/util/clipboard.py
@@ -133,12 +133,12 @@ def xselGetClipboard():
133
getcb = macGetClipboard
134
setcb = macSetClipboard
135
elif os.name == 'posix' or platform.system() == 'Linux':
136
- xclipExists = os.system('which xclip') == 0
+ xclipExists = os.system('which xclip > /dev/null') == 0
137
if xclipExists:
138
getcb = xclipGetClipboard
139
setcb = xclipSetClipboard
140
else:
141
- xselExists = os.system('which xsel') == 0
+ xselExists = os.system('which xsel > /dev/null') == 0
142
if xselExists:
143
getcb = xselGetClipboard
144
setcb = xselSetClipboard
0 commit comments