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

Tuning ext4 for performance with emphasis on SSD usage

NetBeans 6.1: Working with Google´s Android SDK, Groovy and Grails