Skip to content

Commit 0b1a185

Browse files
committed
Use full path for tdjson.dll in Python example.
1 parent 745c408 commit 0b1a185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/python/tdjson_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
from ctypes.util import find_library
99
from ctypes import *
1010
import json
11+
import os
1112
import sys
1213

1314
# load shared library
14-
tdjson_path = find_library('tdjson') or 'tdjson.dll'
15+
tdjson_path = find_library('tdjson') or os.path.join(os.path.dirname(__file__), 'tdjson.dll')
1516
if tdjson_path is None:
1617
sys.exit("Can't find 'tdjson' library")
1718
tdjson = CDLL(tdjson_path)

0 commit comments

Comments
 (0)