Remove "." or "" from front of sys.path (this bit me once).

This commit is contained in:
Guido van Rossum 1997-10-20 23:48:01 +00:00
parent 4e8ef5fcd3
commit 9476a78c1e
1 changed files with 3 additions and 0 deletions

View File

@ -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 *