In Python 2.4 and above the best way to run an executable is the following: import subprocess subprocess.call(“C:\\test.exe -someArg abc”, shell=True) Simply set shell to False if you do not want to show the command line. If you are running a version of Python less than 2.4 then look into using os.system. References http://docs.python.org/library/subprocess.html
Problem: Making a call to input() and during run time a user passes a value ‘x’ and Python outputs the error “input name ‘x’ is not defined” Cause: The Python method input() reads in a user input and actually executes it as python code so the value passed in was not valid Python. Solution: 1. [...]
Introduction This tutorial is good for those just getting started with Python dev. It is demonstrated using the Microsoft Visual Studio 2010 Shell IDE with the PyTools Plugin installed (See my blog post on how to get this setup here: http://www.stevenmarkford.com/free-python-ide-using-visual-studio-shell/ ) In this tutorial we will create a small Python application within the Visual [...]