mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Updated OCaml binding
This commit is contained in:
parent
05b943f6ed
commit
097162a624
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user