From: Guido van Rossum Date: Wed, 31 Jul 1996 21:18:42 +0000 (+0000) Subject: Don't trip over empty string in sys.path. X-Git-Tag: v1.4b2~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68f56e45f6e0f5ed48ccfdfc26f3681bb0cb279e;p=thirdparty%2FPython%2Fcpython.git Don't trip over empty string in sys.path. --- diff --git a/Lib/compileall.py b/Lib/compileall.py index 312028407dd5..9947569eb3d6 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -43,7 +43,7 @@ def compile_dir(dir, maxlevels = 10): def compile_path(skip_curdir = 1): 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' else: compile_dir(dir, 0)