From 1c1286824f69a7f415f905d64101e28bc66494a2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 24 Aug 2017 12:37:03 -0700 Subject: [PATCH] provision: Use sys.version_info for Python version. --- tools/provision | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/provision b/tools/provision index 7d40061..2959b5f 100755 --- a/tools/provision +++ b/tools/provision @@ -18,9 +18,8 @@ the Python version this command is executed with.""" parser.parse_args() base_dir = os.path.abspath(os.path.join(__file__, '..', '..')) - python_version = '.'.join(str(num) for num in sys.version_info[0:3]) python_interpreter = os.path.abspath(sys.executable) - venv_name = 'zulip-api-py{}-venv'.format(python_version) + venv_name = 'zulip-api-py{}-venv'.format(sys.version_info.major) venv_dir = os.path.join(base_dir, venv_name) if not os.path.isdir(venv_dir):