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
|
||||
|
||||
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],
|
||||
shell=True,
|
||||
stdout=subprocess.PIPE,
|
||||
|
@ -86,10 +86,10 @@ def get_dict_child(l_root_abs=None):
|
||||
else:
|
||||
if module_rel not in d_ref:
|
||||
d_ref[module_rel] = l_children
|
||||
else:
|
||||
print "Module {0} alredy defined"
|
||||
print "Abort"
|
||||
sys.exit(1)
|
||||
#else:
|
||||
# print "Module {0} alredy defined"
|
||||
# print "Abort"
|
||||
# sys.exit(1)
|
||||
|
||||
return d_ref
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user