mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
parent
95e8d60729
commit
25999cea10
@ -1,4 +1,5 @@
|
|||||||
import asyncio as _asyncio
|
import asyncio as _asyncio
|
||||||
|
import os as _os
|
||||||
import re as _re
|
import re as _re
|
||||||
import sys as _sys
|
import sys as _sys
|
||||||
import warnings as _warnings
|
import warnings as _warnings
|
||||||
@ -23,7 +24,7 @@ __all__ = [
|
|||||||
"VersionInfo",
|
"VersionInfo",
|
||||||
"_update_event_loop_policy",
|
"_update_event_loop_policy",
|
||||||
]
|
]
|
||||||
if _sys.version_info < MIN_PYTHON_VERSION:
|
if _sys.version_info < MIN_PYTHON_VERSION and not _os.getenv("READTHEDOCS", False):
|
||||||
print(
|
print(
|
||||||
f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you have "
|
f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you have "
|
||||||
f"{_sys.version}! Please update Python."
|
f"{_sys.version}! Please update Python."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user