[Git][NTPsec/ntpsec][ctype] Be slightly more Mac sensitive, and add logging

James Browning gitlab at mg.gitlab.com
Thu Dec 12 18:59:56 UTC 2019



James Browning pushed to branch ctype at NTPsec / ntpsec


Commits:
a969fdfb by James Browning at 2019-12-12T10:59:24-08:00
Be slightly more Mac sensitive, and add logging


- - - - -


1 changed file:

- pylib/ntpc.py


Changes:

=====================================
pylib/ntpc.py
=====================================
@@ -22,19 +22,21 @@ if 'ntpsec' in _cwd.split(os.sep):
         '../../ntpd/',
         ]
 else:
-    _paths = ['@LIBDIR@/']
+    _paths = [os.sep.join('@LIBDIR@/'.split('/'))]
 
 _loaded = False
 for _path in _paths:
     try:
         if not _loaded:
             _path = os.sep.join(_path.split('/'))
+            print(_path)
             _ntpc = ctypes.CDLL('%slibntpc.so' % _path, use_errno=True)
             _loaded = True
             break
     except OSError:
         continue
 if not _loaded:
+    print(_cwd)
     sys.stderr.write('Could not open libntpc.so\nExiting\n')
     exit(1)
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a969fdfb05fd35f5a2a1eee284ba9c59b719aad1

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a969fdfb05fd35f5a2a1eee284ba9c59b719aad1
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20191212/ffac2d16/attachment.htm>


More information about the vc mailing list