Call/Execute Python scripts with parameters/arguments/args

Extern python scripts, executables and other programs can be called/executed as described in this example:

import subprocess 
args = (
                ' --flag ',
                ' --flag1 ',
                ' --flag2 ',

                )
subprocess.call(['/opt/googleappengine/dev_appserver.py', args], shell = True)

Comments

Popular posts from this blog

Apple's evaluating a new JVM

Tuning ext4 for performance with emphasis on SSD usage