deep-RL-learning-course / lesson02 /test_environment.py
ItchyB's picture
starting new practical learning branch using nbdev
3215e11
raw
history blame contribute delete
654 Bytes
import sys
REQUIRED_PYTHON = "python3"
def main():
system_major = sys.version_info.major
if REQUIRED_PYTHON == "python":
required_major = 2
elif REQUIRED_PYTHON == "python3":
required_major = 3
else:
raise ValueError(
# .format(REQUIRED_PYTHON)
f"Unrecognized python interpreter: {REQUIRED_PYTHON}"
)
if system_major != required_major:
raise TypeError(
f"This project requires Python {required_major}. Found: Python {sys.version}"
)
else:
print(">>> Development environment passes all tests!")
if __name__ == '__main__':
main()