1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-22 20:35:44 +01:00

Updated OCaml binding

This commit is contained in:
Anthony Scemama 2024-05-27 15:21:52 +02:00
parent 05b943f6ed
commit 097162a624

View File

@ -8,10 +8,10 @@ ml_file = "trexio.ml"
mli_file = ml_file+"i" mli_file = ml_file+"i"
def check_version(): def check_version():
with open('trexio.opam','r') as f: with open('dune-project','r') as f:
for line in f: for line in f:
if line.startswith("version"): if line.startswith("(version"):
ocaml_version = line.split(':')[1].strip()[1:-1] ocaml_version = line.split()[1].strip().replace(')','')
break break
with open('../../configure.ac','r') as f: with open('../../configure.ac','r') as f:
for line in f: for line in f: