Deal with really annoying failure when the build code tries to return to a dir that...
authorChris Larson <clarson@kergoth.com>
Sat, 22 May 2004 16:51:59 +0000 (16:51 +0000)
committerChris Larson <clarson@kergoth.com>
Sat, 22 May 2004 16:51:59 +0000 (16:51 +0000)
bin/oe/build.py

index c7b0972..ab9e2f2 100644 (file)
@@ -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.