changin os.exit to sys.exit

Fixes #5009
This commit is contained in:
Prabhjyot Singh Sodhi 2015-02-22 02:06:07 +05:30
parent b589735b47
commit 12e2f30617

View file

@ -152,7 +152,7 @@ class CommandBase(object):
if "GONKDIR" not in env:
# Things can get pretty opaque if this hasn't been set
print("Please set $GONKDIR in your environment or servobild file")
os.exit(1)
sys.exit(1)
if self.config["gonk"]["product"]:
env["GONK_PRODUCT"] = self.config["gonk"]["product"]