Update __main__.py

pull/136/head
Who? 2025-05-11 05:34:58 +07:00 committed by GitHub
parent aa1a8ff8d0
commit 3778a6bc54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -69,8 +69,8 @@ if (
print("Added NO_SUDO in your environment variables")
restart()
if sys.version_info < (3, 8, 0):
print("\U0001F6AB Error: you must use at least Python version 3.8.0")
if sys.version_info < (3, 9, 0):
print("\U0001F6AB Error: you must use at least Python version 3.9.0")
elif __package__ != "hikka":
print("\U0001F6AB Error: you cannot run this as a script; you must execute as a package")
else:
@ -81,7 +81,7 @@ else:
else:
try:
import herokutl # noqa: F811
if tuple(map(int, herokutl.__version__.split("."))) < (2, 0, 8):
if tuple(map(int, herokutl.__version__.split("."))) < (1, 0, 2):
raise ImportError
except ImportError:
print("\U0001F504 Installing dependencies...")