We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 745c408 commit 0b1a185Copy full SHA for 0b1a185
example/python/tdjson_example.py
@@ -8,10 +8,11 @@
8
from ctypes.util import find_library
9
from ctypes import *
10
import json
11
+import os
12
import sys
13
14
# load shared library
-tdjson_path = find_library('tdjson') or 'tdjson.dll'
15
+tdjson_path = find_library('tdjson') or os.path.join(os.path.dirname(__file__), 'tdjson.dll')
16
if tdjson_path is None:
17
sys.exit("Can't find 'tdjson' library")
18
tdjson = CDLL(tdjson_path)
0 commit comments