]> granicus.if.org Git - python/commitdiff
Remove "." or "" from front of sys.path (this bit me once).
authorGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:48:01 +0000 (23:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:48:01 +0000 (23:48 +0000)
Tools/scripts/which.py

index 0aff2cd187462be0c48ab322f413b7dfd0b034d1..a05d91998a58d97a09729735259dec3a5ee24020 100755 (executable)
@@ -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 *