[Git][NTPsec/ntpsec][ctype] Try to be Mac sensitive

James Browning gitlab at mg.gitlab.com
Thu Dec 12 18:08:32 UTC 2019



James Browning pushed to branch ctype at NTPsec / ntpsec


Commits:
49760de7 by James Browning at 2019-12-12T10:07:52-08:00
Try to be Mac sensitive


- - - - -


1 changed file:

- pylib/ntpc.py


Changes:

=====================================
pylib/ntpc.py
=====================================
@@ -15,7 +15,7 @@ TYPE_CLOCK = 3
 # Add raw interface to libNTP.
 _ntpc = None
 _cwd = os.getcwd()
-if 'ntpsec' in _cwd.split('/'):
+if 'ntpsec' in _cwd.split(os.sep):
     _paths = [
         'main/ntpd/',
         'build/main/ntpd/',
@@ -28,6 +28,7 @@ _loaded = False
 for _path in _paths:
     try:
         if not _loaded:
+            _path = os.sep.join(_path.split('/'))
             _ntpc = ctypes.CDLL('%slibntpc.so' % _path, use_errno=True)
             _loaded = True
             break



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/49760de76cb8c824466ca532527a77fb654854aa
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/56006add/attachment.htm>


More information about the vc mailing list