(no commit message)
authorChris Larson <clarson@kergoth.com>
Fri, 5 Mar 2004 17:35:38 +0000 (17:35 +0000)
committerChris Larson <clarson@kergoth.com>
Fri, 5 Mar 2004 17:35:38 +0000 (17:35 +0000)
bin/oe/build.py

index 590615a..8c1a024 100644 (file)
@@ -100,7 +100,10 @@ def exec_func(func, d, dirs = None):
 
        adir = data.expand(adir, d)
 
-       prevdir = os.getcwd()
+       try:
+               prevdir = os.getcwd()
+       except OSError:
+               prevdir = data.expand('${TOPDIR}')
        if adir and os.access(adir, os.F_OK):
                os.chdir(adir)