mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
Update verify-python.py
This commit is contained in:
parent
c181ffa198
commit
3b10770c1d
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
# The sys module provides information about constants, functions and methods of the Python interpreter.
|
||||
import sys
|
||||
#The len() function returns the number of items in an object. When the object is a string, the len() function returns the number of characters in the string.
|
||||
argCount = len(sys.argv) - 1
|
||||
|
||||
if argCount == 1:
|
||||
|
@ -19,4 +21,4 @@ if argCount == 1:
|
|||
raise Exception("Incorrect number of arguments supplied")
|
||||
print("Correct version of Python " + expectedVersion + " detected")
|
||||
else:
|
||||
raise Exception("Incorrect number of arguments supplied")
|
||||
raise Exception("Incorrect number of arguments supplied")
|
||||
|
|
Loading…
Add table
Reference in a new issue