Jacob Su 2024-01-06 21:13:45 +08:00 committed by GitHub
parent f5b18fba75
commit cf9f76cf9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import json
import shutil
import importlib
import collections
from distutils.util import strtobool
from utils import strtobool
global COMPILE_CONFIG
COMPILE_CONFIG = None

5
scripts/utils.py Normal file
View File

@ -0,0 +1,5 @@
def strtobool(value: str) -> bool:
value = value.lower()
if value in ("y", "yes", "on", "1", "true", "t"):
return True
return False