camomile cannot be load using dynlink
Status: Beta
Brought to you by:
yori
Hi,
I try to use batteries in an ocsigen project and it is not possible because camomile fails to find its data file.
Batteries use *Dyn BUT when using dynlink it evals everything in the loaded .cma, including the part that uses hardcode path.
This is an important bug for me because it prevent the launche of oasis-db (it implies a very ugly hack in fact).
2 solutions:
- split the Dyn library
- fail quietly when not able to load the hardcoded path.
Cheers
Sylvain Le Gall
BTW, it would be great that the error reported be a failwith (Printf.sprintf "unable to load file %s") rather than a cryptic Not_found.