From 21f87b3e889df36fa55432352cde39160106177a Mon Sep 17 00:00:00 2001 From: qedk <1994constant@gmail.com> Date: Sun, 20 Sep 2020 19:10:31 +0530 Subject: [PATCH] provision: Fix source command on Windows. --- tools/provision | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/provision b/tools/provision index e6894ea..c0d143a 100755 --- a/tools/provision +++ b/tools/provision @@ -116,6 +116,9 @@ the Python version this command is executed with.""" venv_dir, venv_exec_dir, 'activate') + # We make the path look like a Unix path, because most Windows users + # are likely to be running in a bash shell. + activate_command = activate_command.replace(os.sep, '/') print('\nRun the following to enter into the virtualenv:\n') print(bold + ' source ' + activate_command + end_format + "\n")