summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-20 23:48:01 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-20 23:48:01 (GMT)
commit9476a78c1e310ecea0ceb953e36ec7e2d8f67856 (patch)
tree06e401e6095304d07651d050ff90a3a194abcd3b /Tools/scripts
parent4e8ef5fcd3e44b848710beac4e9211d4892bdf0f (diff)
downloadcpython-9476a78c1e310ecea0ceb953e36ec7e2d8f67856.zip
cpython-9476a78c1e310ecea0ceb953e36ec7e2d8f67856.tar.gz
cpython-9476a78c1e310ecea0ceb953e36ec7e2d8f67856.tar.bz2
Remove "." or "" from front of sys.path (this bit me once).
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/which.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/scripts/which.py b/Tools/scripts/which.py
index 0aff2cd..a05d919 100755
--- a/Tools/scripts/which.py
+++ b/Tools/scripts/which.py
@@ -4,6 +4,9 @@
# On stderr, near and total misses are reported.
# '-l<flags>' argument adds ls -l<flags> of each file found.
+import sys
+if sys.path[0] in (".", ""): del sys.path[0]
+
import sys, os, string
from stat import *