In my bash terminal, I can run the following command:
$SCHRODINGER/run volume_calc.py -imae type.mae
and this works correctly.
I am then trying to run the same command in a python script; where I have tried the following approach:
import subprocess
subprocess.run(['$SCHRODINGER/run', 'volume_calc.py', '-imae', 'type.mae'])
which throws the error:
FileNotFoundError: [Errno 2] No such file or directory: '$SCHRODINGER/run'
I am confused what the issue could be, as I can run basic bash commands fine. Thank you for any help.