Commit 68f56e45 authored by Guido van Rossum's avatar Guido van Rossum

Don't trip over empty string in sys.path.

parent 170ffa77
...@@ -43,7 +43,7 @@ def compile_dir(dir, maxlevels = 10): ...@@ -43,7 +43,7 @@ def compile_dir(dir, maxlevels = 10):
def compile_path(skip_curdir = 1): def compile_path(skip_curdir = 1):
for dir in sys.path: for dir in sys.path:
if dir == os.curdir and skip_curdir: if (not dir or dir == os.curdir) and skip_curdir:
print 'Skipping current directory' print 'Skipping current directory'
else: else:
compile_dir(dir, 0) compile_dir(dir, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment