at 22.05-pre 821 B view raw
1From 6f544a5bd43446859754cb80e012af933b843db9 Mon Sep 17 00:00:00 2001 2From: Florian Klink <flokli@flokli.de> 3Date: Wed, 3 Jun 2020 22:05:34 +0200 4Subject: [PATCH] clipboard: make which substitutable 5 6This is used to detect the presence of xclip and other clipboard 7handling tools. 8--- 9 bpython/clipboard.py | 2 +- 10 1 file changed, 1 insertion(+), 1 deletion(-) 11 12diff --git a/bpython/clipboard.py b/bpython/clipboard.py 13index aee429b..f346429 100644 14--- a/bpython/clipboard.py 15+++ b/bpython/clipboard.py 16@@ -58,7 +58,7 @@ class OSXClipboard(object): 17 18 def command_exists(command): 19 process = subprocess.Popen( 20- ["which", command], stderr=subprocess.STDOUT, stdout=subprocess.PIPE 21+ ["@which@", command], stderr=subprocess.STDOUT, stdout=subprocess.PIPE 22 ) 23 process.communicate() 24 25-- 262.26.2 27