diff --git a/doc/conf.py b/doc/conf.py index 6f34e315977c316356c35ea034880e63346cbb1e..8d38d33e2ca8239e54baa782a07613cda1e9f699 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -130,7 +130,7 @@ html_logo = 'logo.png' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. -html_use_smartypants = False +#html_use_smartypants = False # Custom sidebar templates, maps document names to template names. #html_sidebars = {} diff --git a/python/libknot/control.py b/python/libknot/control.py index 894d2a5bedb25a522ea856c1a603b61b958640cc..a7e5403466ad6228c28d72e11ef1788d680bf1af 100755 --- a/python/libknot/control.py +++ b/python/libknot/control.py @@ -27,6 +27,7 @@ Example: from ctypes import cdll, c_void_p, c_int, c_char_p, c_uint, byref from enum import IntEnum +from sys import platform CTL_ALLOC = None CTL_FREE = None @@ -38,9 +39,11 @@ CTL_RECEIVE = None CTL_ERROR = None -def load_lib(path="libknot.so"): +def load_lib(path=None): """Loads the libknot library.""" + if path is None: + path = "libknot.dylib" if sys.platform == "darwin" else "libknot.so" LIB = cdll.LoadLibrary(path) global CTL_ALLOC