forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-python-version.py
More file actions
15 lines (12 loc) · 844 Bytes
/
get-python-version.py
File metadata and controls
15 lines (12 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
###################################################################################################
# This script returns a short string describing the major version of python being used.
#
# While it should be versatile, it was written with the intention that it will help resolve which
# requirements.txt to pull concrete-dependencies from.
###################################################################################################
import sys
print('py{}'.format(sys.version_info[0]))