Skip to content

Commit abb3998

Browse files
author
guido
committed
Remove "." or "" from front of sys.path (this bit me once).
git-svn-id: http://svn.python.org/projects/python/trunk@8984 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 1529a4c commit abb3998

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)