Skip to content

Commit

Permalink
Fix windows parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Nov 17, 2020
1 parent 6dcadee commit 5227b00
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gribapi/bindings.py
Expand Up @@ -29,10 +29,9 @@
from ._bindings import ffi, lib
except ModuleNotFoundError:
ffi = cffi.FFI()
ffi.cdef(
pkgutil.get_data(__name__, "grib_api.h").decode("utf-8")
+ pkgutil.get_data(__name__, "eccodes.h").decode("utf-8")
)
CDEF = pkgutil.get_data(__name__, "grib_api.h")
CDEF += pkgutil.get_data(__name__, "eccodes.h")
ffi.cdef(CDEF.decode("utf-8").replace("\r", "\n"))

LIBNAMES = ["eccodes", "libeccodes.so", "libeccodes"]

Expand Down

0 comments on commit 5227b00

Please sign in to comment.