mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
modified some scripts
This commit is contained in:
parent
6e0a411d6b
commit
55eb3a8301
@ -538,7 +538,7 @@ def get_binaries(path_module):
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = 'grep -l "program" {0}/*.irp.f'.format(path_module.abs)
|
cmd = 'grep -l -e "^program " {0}/*.irp.f'.format(path_module.abs)
|
||||||
process = subprocess.Popen([cmd],
|
process = subprocess.Popen([cmd],
|
||||||
shell=True,
|
shell=True,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
|
@ -86,10 +86,10 @@ def get_dict_child(l_root_abs=None):
|
|||||||
else:
|
else:
|
||||||
if module_rel not in d_ref:
|
if module_rel not in d_ref:
|
||||||
d_ref[module_rel] = l_children
|
d_ref[module_rel] = l_children
|
||||||
else:
|
#else:
|
||||||
print "Module {0} alredy defined"
|
# print "Module {0} alredy defined"
|
||||||
print "Abort"
|
# print "Abort"
|
||||||
sys.exit(1)
|
# sys.exit(1)
|
||||||
|
|
||||||
return d_ref
|
return d_ref
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user