From ad1ff0c7bfd6ed3ab738fceae863fe9fa62aca9e Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Fri, 1 Sep 2017 18:24:17 +0200 Subject: [PATCH] provision: Add color formatting to success output. --- tools/provision | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/provision b/tools/provision index 2959b5f..870243b 100755 --- a/tools/provision +++ b/tools/provision @@ -54,8 +54,9 @@ the Python version this command is executed with.""" raise OSError("The command `pip install -r {}` failed. Dependencies not installed!" .format(os.path.join(base_dir, 'requirements.txt'))) - print("Success! Run `source {}` to activate virtualenv.".format( - os.path.join(base_dir, venv_dir, venv_exec_dir, 'activate'))) + print("{green}Success!{end_format} Run\n{bold}source {activate}{end_format}\nto activate virtualenv.".format( + green='\033[92m', bold='\033[1m', end_format='\033[0m', + activate=os.path.join(base_dir, venv_dir, venv_exec_dir, 'activate'))) if __name__ == '__main__': main()