blob: b09338f21eb347fa1c242f9e5418c82084749401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import os
import typing
if not typing.TYPE_CHECKING:
if os.environ.get("DISABLE_SQLALCHEMY_CEXT_RUNTIME"):
HAS_CYEXTENSION = False
else:
try:
from ..cyextension import util # noqa
except ImportError:
HAS_CYEXTENSION = False
else:
HAS_CYEXTENSION = True
else:
HAS_CYEXTENSION = False
|