provision: Put venv activation path in quotes.

This makes the command work with Windows paths with spaces in them.
This commit is contained in:
derAnfaenger 2017-09-12 16:48:37 +02:00
parent 6aece20925
commit 20f01fec85

View file

@ -54,7 +54,7 @@ the Python version this command is executed with."""
raise OSError("The command `pip install -r {}` failed. Dependencies not installed!" raise OSError("The command `pip install -r {}` failed. Dependencies not installed!"
.format(os.path.join(base_dir, 'requirements.txt'))) .format(os.path.join(base_dir, 'requirements.txt')))
print("{green}Success!{end_format} Run\n {bold}source {activate}{end_format}\nto activate virtualenv.".format( 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', green='\033[92m', bold='\033[1m', end_format='\033[0m',
activate=os.path.join(base_dir, venv_dir, venv_exec_dir, 'activate'))) activate=os.path.join(base_dir, venv_dir, venv_exec_dir, 'activate')))