From: Chris Larson Date: Fri, 5 Mar 2004 17:35:38 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 1.0~270 X-Git-Url: http://code.vuplus.com/gitweb/?a=commitdiff_plain;h=593deecde001e9850faea0b4efa6d31c5614a63e;p=vuplus_bitbake --- diff --git a/bin/oe/build.py b/bin/oe/build.py index 590615a..8c1a024 100644 --- a/bin/oe/build.py +++ b/bin/oe/build.py @@ -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)