zulip: Exit with info after provisioning script.

This commit is contained in:
derAnfaenger 2017-09-15 11:45:10 +02:00 committed by Tim Abbott
parent 091f532da6
commit 59d65309c7

View file

@ -242,8 +242,10 @@ def init_from_options(options, client=None):
"https://pip.pypa.io/en/stable/installing/") "https://pip.pypa.io/en/stable/installing/")
sys.exit(1) sys.exit(1)
if not pip.main(['install', '--upgrade', '--requirement', requirements_path]): if not pip.main(['install', '--upgrade', '--requirement', requirements_path]):
print("{color_green}Provisioning successful.{end_color}".format( print("{color_green}You successfully provisioned the dependencies for {script}.{end_color}".format(
color_green='\033[92m', end_color='\033[0m')) color_green='\033[92m', end_color='\033[0m',
script=os.path.splitext(os.path.basename(sys.argv[0]))[0]))
sys.exit(0)
if options.zulip_client is not None: if options.zulip_client is not None:
client = options.zulip_client client = options.zulip_client