Skip to content

Commit 9476a78

Browse files
committed
Remove "." or "" from front of sys.path (this bit me once).
1 parent 4e8ef5f commit 9476a78

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Tools/scripts/which.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# On stderr, near and total misses are reported.
55
# '-l<flags>' argument adds ls -l<flags> of each file found.
66

7+
import sys
8+
if sys.path[0] in (".", ""): del sys.path[0]
9+
710
import sys, os, string
811
from stat import *
912

0 commit comments

Comments
 (0)