From eb0b1986d16946997ae55cb9835ebc32f450b026 Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 27 Oct 2014 08:11:07 +0300 Subject: [PATCH] Fix location of the which function --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 933cbfde..16f9f002 100755 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ except Exception as e: which = shutil.which else: sys.path.append(CURRENT_DIR) - from powerline.lib import which + from powerline.lib.shell import which if which('socat') and which('sed') and which('sh'): print('Using powerline.sh script instead of C version (requires socat, sed and sh)') shutil.copyfile('client/powerline.sh', 'scripts/powerline')