mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
Fix ei_handler ocaml_global
This commit is contained in:
parent
d7c0b755ab
commit
c6128f7a22
@ -609,7 +609,7 @@ def save_ocaml_input(module_lower, str_ocaml_input):
|
||||
|
||||
def get_l_module_with_auto_generate_ocaml_lower():
|
||||
"""
|
||||
Get all module who have EZFIO.cfg with input data
|
||||
Get all module who have EZFIO.cfg with ocaml data
|
||||
(NB `search` in all the ligne and `match` only in one)
|
||||
"""
|
||||
|
||||
@ -625,7 +625,7 @@ def get_l_module_with_auto_generate_ocaml_lower():
|
||||
|
||||
l_module_lower = []
|
||||
import re
|
||||
p = re.compile(ur'interface:\s+input')
|
||||
p = re.compile(ur'interface:.*ocaml')
|
||||
|
||||
for f in l_folder:
|
||||
path = "{0}/{1}/EZFIO.cfg".format(QP_SRC, f)
|
||||
@ -763,6 +763,7 @@ if __name__ == "__main__":
|
||||
# ~#~#~#~# #
|
||||
|
||||
l_module = get_l_module_with_auto_generate_ocaml_lower()
|
||||
print l_module
|
||||
|
||||
str_ocaml_qp_edit, str_ocaml_input_auto = create_ocaml_input_global(l_module)
|
||||
save_ocaml_input_auto(str_ocaml_input_auto)
|
||||
|
@ -350,9 +350,6 @@ def check_convert(path_out):
|
||||
cmd = "qp_run SCF {0}.ezfio".format(path_out)
|
||||
subprocess.check_call([cmd], shell=True)
|
||||
|
||||
cmd = "ls -R {0}.ezfio/".format(path_out)
|
||||
subprocess.check_call([cmd], shell=True)
|
||||
|
||||
# ~#~#~#~#~ #
|
||||
# C h e c k #
|
||||
# ~#~#~#~#~ #
|
||||
|
Loading…
Reference in New Issue
Block a user