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

Java 8: Default Interface Implementations, The Diamond Problem, Multiple Inheritance, and Precedence

Tuning ext3 for performance without losing its data integrity potential