summaryrefslogtreecommitdiffstats
path: root/Lib/compileall.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-31 21:18:42 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-31 21:18:42 (GMT)
commit68f56e45f6e0f5ed48ccfdfc26f3681bb0cb279e (patch)
treeb700f7105c7a61b3d839c4eff3a4dde71757d4e5 /Lib/compileall.py
parent170ffa775dca17fab8fce083904fbf156dd69351 (diff)
downloadcpython-68f56e45f6e0f5ed48ccfdfc26f3681bb0cb279e.zip
cpython-68f56e45f6e0f5ed48ccfdfc26f3681bb0cb279e.tar.gz
cpython-68f56e45f6e0f5ed48ccfdfc26f3681bb0cb279e.tar.bz2
Don't trip over empty string in sys.path.
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r--Lib/compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 3120284..9947569 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)