MCPcopy Create free account
hub / github.com/Jaysmito101/TerraForge3D / __ValidatePython

Method __ValidatePython

scripts/SetupPython.py:16–24  ·  view source on GitHub ↗
(cls, versionMajor = 3, versionMinor = 3)

Source from the content-addressed store, hash-verified

14
15 @classmethod
16 def __ValidatePython(cls, versionMajor = 3, versionMinor = 3):
17 if sys.version is not None:
18 print("Python version {0:d}.{1:d}.{2:d} detected.".format( \
19 sys.version_info.major, sys.version_info.minor, sys.version_info.micro))
20 if sys.version_info.major < versionMajor or (sys.version_info.major == versionMajor and sys.version_info.minor < versionMinor):
21 print("Python version too low, expected version {0:d}.{1:d} or higher.".format( \
22 versionMajor, versionMinor))
23 return False
24 return True
25
26 @classmethod
27 def __ValidatePackage(cls, packageName):

Callers 1

ValidateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected