Skip to content

Commit 68f56e4

Browse files
committed
Don't trip over empty string in sys.path.
1 parent 170ffa7 commit 68f56e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/compileall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def compile_dir(dir, maxlevels = 10):
4343

4444
def compile_path(skip_curdir = 1):
4545
for dir in sys.path:
46-
if dir == os.curdir and skip_curdir:
46+
if (not dir or dir == os.curdir) and skip_curdir:
4747
print 'Skipping current directory'
4848
else:
4949
compile_dir(dir, 0)

0 commit comments

Comments
 (0)