Skip to content

Commit 191ca42

Browse files
committed
use sysconfig instead to support windows
1 parent 293bf98 commit 191ca42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlitefts/tokenizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"""
33
a proof of concept implementation of SQLite FTS tokenizers in Python
44
"""
5+
56
import sys
7+
import sysconfig
68

79
from cffi import FFI # type: ignore
810

@@ -26,7 +28,7 @@
2628
except:
2729
dll = ffi.dlopen(find_library("sqlite3"))
2830

29-
if "t" in sys.abiflags:
31+
if sysconfig.get_config_var("Py_GIL_DISABLED") == 1:
3032
ffi.cdef(
3133
"""
3234
typedef struct sqlite3 sqlite3;

0 commit comments

Comments
 (0)