From f36e953baabe5526afc3f6338f489f33e61db6c1 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Wed, 2 Mar 2011 00:18:30 +0100 Subject: [PATCH] Make pyflakes work regardless of $PWD, fix grammar --- tools/pyflakes.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index 5f5a053b..bd64f221 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -1,7 +1,6 @@ #!/bin/bash -if [ `basename $PWD` == 'tools' ]; then - cd .. -fi +cd $(dirname $0) +cd .. # grep will return 0 only if it founds something, but our script # wants to return 0 when it founds nothing!