Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #19 from furlongm/master
Browse files Browse the repository at this point in the history
fix 'No such file or directory' error on cygwin
  • Loading branch information
atdt committed Aug 3, 2016
2 parents 2af099a + e736ba2 commit a90be87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion monotonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ def monotonic():
# 2. libffi masks the problem because after making the call it doesn't
# touch anything through esp and epilogue code restores a correct
# esp from ebp afterwards.
kernel32 = ctypes.cdll.kernel32
try:
kernel32 = ctypes.cdll.kernel32
except OSError: # 'No such file or directory'
kernel32 = ctypes.cdll.LoadLibrary('kernel32.dll')
else:
kernel32 = ctypes.windll.kernel32

Expand Down

0 comments on commit a90be87

Please sign in to comment.