[Lxml-checkins] r54713 - lxml/trunk

scoder at codespeak.net scoder at codespeak.net
Tue May 13 23:52:52 CEST 2008


Author: scoder
Date: Tue May 13 23:52:51 2008
New Revision: 54713

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/setupinfo.py
Log:
 r4207 at delle:  sbehnel | 2008-05-13 07:25:11 +0200
 fix for broken env var evaluation


Modified: lxml/trunk/setupinfo.py
==============================================================================
--- lxml/trunk/setupinfo.py	(original)
+++ lxml/trunk/setupinfo.py	Tue May 13 23:52:51 2008
@@ -15,8 +15,11 @@
 PACKAGE_PATH = "src/lxml/"
 
 def env_var(name):
-    value = os.getenv(name, '')
-    return value.split(os.pathsep)
+    value = os.getenv(name)
+    if value:
+        return value.split(os.pathsep)
+    else:
+        return []
 
 def ext_modules(static_include_dirs, static_library_dirs, static_cflags): 
     if CYTHON_INSTALLED:


More information about the lxml-checkins mailing list