Skip to content

Commit

Permalink
Try to fix readthedocs failure with c lib
Browse files Browse the repository at this point in the history
  • Loading branch information
schoi32 committed Oct 27, 2022
1 parent cb6b45a commit 17219f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qmcpy/discrete_distribution/c_lib/load_c_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
from glob import glob
import os

c_lib = CDLL(glob(dirname(abspath(__file__)) + os.sep + "c_lib*")[0], mode=RTLD_GLOBAL)
try:
c_lib = CDLL(glob(dirname(abspath(__file__)) + os.sep + "c_lib*")[0], mode=RTLD_GLOBAL)
except e:
pass

0 comments on commit 17219f6

Please sign in to comment.