Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-07-03 23:35:53


Author: steven_watanabe
Date: 2008-07-03 23:35:53 EDT (Thu, 03 Jul 2008)
New Revision: 47065
URL: http://svn.boost.org/trac/boost/changeset/47065

Log:
Fix home_directories for windows
Text files modified:
   branches/build/python_port/python/boost/build/build_system.py | 11 ++++++++---
   1 files changed, 8 insertions(+), 3 deletions(-)

Modified: branches/build/python_port/python/boost/build/build_system.py
==============================================================================
--- branches/build/python_port/python/boost/build/build_system.py (original)
+++ branches/build/python_port/python/boost/build/build_system.py 2008-07-03 23:35:53 EDT (Thu, 03 Jul 2008)
@@ -52,9 +52,14 @@
 
 def home_directories():
     if os.name == "nt":
- return [os.environ['HOMEDRIVE'] + os.envrion['HOMEPATH'],
- os.environ['HOME'],
- os.environ['USERPROFILE']]
+ result = set()
+ try:
+ result.add(os.environ['HOMEDRIVE'] + os.environ['HOMEPATH'])
+ result.add(os.environ['HOME'])
+ result.add(os.environ['USERPROFILE'])
+ except KeyError:
+ pass
+ return list(result)
     else:
         return [os.environ['HOME']]
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk