From a13b3db7c8e99dc3b989ad840dd4b89aff344c29 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Thu, 15 Dec 2016 22:12:31 +0100 Subject: [PATCH] Fixes cwd for new windows on FreeBSD --- terminatorlib/freebsd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminatorlib/freebsd.py b/terminatorlib/freebsd.py index e19f008e..e364dbfd 100644 --- a/terminatorlib/freebsd.py +++ b/terminatorlib/freebsd.py @@ -13,6 +13,7 @@ """ from ctypes import * +from ctypes.util import find_library class sockaddr_storage(Structure): """struct sockaddr_storage, defined in /usr/include/sys/socket.h""" @@ -43,7 +44,7 @@ class kinfo_file(Structure): ('kf_sa_peer', sockaddr_storage), ] -libc = CDLL('libc.so') +libc = CDLL(find_library('c')) uintlen = c_size_t(sizeof(c_uint)) ver = c_uint(0)