[py-svn] r57371 - py/build
hpk at codespeak.net
hpk at codespeak.net
Sun Aug 17 22:09:03 CEST 2008
Author: hpk
Date: Sun Aug 17 22:09:01 2008
New Revision: 57371
Modified:
py/build/_fixpythonpath.py
Log:
pythonpath may not be set
Modified: py/build/_fixpythonpath.py
==============================================================================
--- py/build/_fixpythonpath.py (original)
+++ py/build/_fixpythonpath.py Sun Aug 17 22:09:01 2008
@@ -1,7 +1,7 @@
import os, sys
l = []
-for p in os.environ['PYTHONPATH'].split(':'):
+for p in os.environ.get('PYTHONPATH', '').split(':'):
if os.path.exists(os.path.join(p, 'py')):
l.append(p)
More information about the pytest-commit
mailing list