aboutsummaryrefslogtreecommitdiffstats
path: root/bin/oe/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/oe/build.py')
-rw-r--r--bin/oe/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oe/build.py b/bin/oe/build.py
index c7b0972bd..ab9e2f29f 100644
--- a/bin/oe/build.py
+++ b/bin/oe/build.py
@@ -131,7 +131,8 @@ def exec_func_python(func, d):
g['os'] = os
g['d'] = d
exec comp in g
- os.chdir(prevdir)
+ if os.path.exists(prevdir):
+ os.chdir(prevdir)
def exec_func_shell(func, d):
"""Execute a shell OE 'function' Returns true if execution was successful.