Skip to content

Commit 5499de4

Browse files
committed
Fix path to sqlite lib
1 parent 76171e7 commit 5499de4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/source-python/packages/source-python/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,8 @@ def setup_sqlite():
472472
# version installed. This fixes the issue by loading the library into the
473473
# memory using its absolute path.
474474
# Using RPATH might be a better solution, but I don't get it working...
475-
ctypes.cdll.LoadLibrary(BASE_PATH / 'Python3/plat-linux/libsqlite3.so.0')
475+
ctypes.cdll.LoadLibrary(
476+
BASE_PATH / 'Python3/lib-dynload/_sqlite3.cpython-313-x86_64-linux-gnu.so')
476477

477478

478479
# =============================================================================
@@ -533,4 +534,4 @@ def flush(self):
533534
'https://github.com/Source-Python-Dev-Team/Source.Python/issues/175. '
534535
'Source.Python should continue working, but we would like to figure '
535536
'out in which situations sys.stdout is None to be able to fix this '
536-
'issue instead of applying a workaround.')
537+
'issue instead of applying a workaround.')

0 commit comments

Comments
 (0)