diff options
Diffstat (limited to 'scripts/lib/wic/engine.py')
| -rw-r--r-- | scripts/lib/wic/engine.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index a034841a7a..30c4fa38dc 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
| @@ -43,9 +43,7 @@ def verify_build_env(): | |||
| 43 | 43 | ||
| 44 | Returns True if it is, false otherwise | 44 | Returns True if it is, false otherwise |
| 45 | """ | 45 | """ |
| 46 | try: | 46 | if not os.environ.get("BUILDDIR"): |
| 47 | builddir = os.environ["BUILDDIR"] | ||
| 48 | except KeyError: | ||
| 49 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" | 47 | print "BUILDDIR not found, exiting. (Did you forget to source oe-init-build-env?)" |
| 50 | sys.exit(1) | 48 | sys.exit(1) |
| 51 | 49 | ||
