--- /usr/lib/python2.4/site.py 2005-03-30 15:01:32.000000000 -0600 +++ site.py 2006-07-19 15:33:35.000000000 -0500 @@ -90,6 +90,13 @@ # Filter out duplicate paths (on case-insensitive file systems also # if they only differ in case); turn relative paths into absolute # paths. + if dir == '': + # On some platforms there is an extra empty string in the list + # of paths, which causes the current working directory to always + # be added to the search path. Prevent this. + # it will be added later if it is required by the code that adds + # dirname(sys.argv[0]) + continue dir, dircase = makepath(dir) if not dircase in known_paths: L.append(dir)