10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-22 20:34:58 +01:00

Fix bug when a blank space precedes program

This commit is contained in:
Anthony Scemama 2019-04-01 18:02:34 +02:00
parent e8d8f73475
commit 148add1a73

View File

@ -538,7 +538,7 @@ def get_binaries(path_module):
import subprocess import subprocess
try: try:
cmd = 'grep -l -e "^program " {0}/*.irp.f'.format(path_module.abs) cmd = 'grep -l -e "^\\s*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,