Aug-23-2018, 12:30 PM
Hi
In your case replace the variable file instead of string 'file'.
In your case replace the variable file instead of string 'file'.
import os import subprocess import sys for file in os.listdir('.'): if file.endswith('pdb'): cmd = '/usr/share/apps/flexaid_temporal/Process_Ligand -f ' + file p = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE)